我知道如何解析一些 XML 结构,但我目前正在尝试解析这个与我习惯的有点不同的特定 xml 结构。
但现在我正在使用一些像这样的xml..你能帮帮我吗?
<?xml version="1.0" encoding="UTF-8"?>
<EssentialPhoneNumbers>
<Department>
<Name>Direct sales department</Name>
<Phone>03-6380000</Phone>
<Hours>Sunday - Thursday 20:00 to 8:30. Fridays and holiday eves: 8:00 to 12:00</Hours>
<Contacts>
<Contact>
<Name>Inquiries about purchasing life and health insurance</Name>
<Phone>03-6380390</Phone>
<Fax>NA</Fax>
<Hours>NA</Hours>
</Contact>
<Contact>
<Name>Inquiries about purchasing car insurance, apartment and office</Name>
<Phone>03-6380350</Phone>
<Fax>NA</Fax>
<Hours>NA</Hours>
</Contact>
<Contact>
<Name>Doctors - medical bug reports or claims (MCI Inc.)</Name>
<Phone>03-6380406</Phone>
<Fax>03-6380345</Fax>
<Hours>NA</Hours>
</Contact>
<Contact>
<Name>Focus option - all health insurance</Name>
<Phone>03-6380204</Phone>
<Fax>03-5244401</Fax>
<Hours>Sunday - Thursday 20:00 to 8:30</Hours>
</Contact>
<Contact>
<Name>General insurance claims department Avinoam Ike</Name>
<Phone>03-6380429</Phone>
<Fax>NA</Fax>
<Hours>NA</Hours>
</Contact>
</Contacts>
</Department>
<Department>
<Name>Service Department</Name>
<Phone>03-6380350</Phone>
<Hours>Sunday - Thursday 6:00 p.m. to 8:00 a.m. Fridays and holiday eves: 8:00 to 12:00</Hours>
<Contacts>
<Contact>
<Name>Center and emergency assistance services 24 hours a day</Name>
<Phone>1-800-280-555</Phone>
<Fax>NA</Fax>
<Hours>NA</Hours>
</Contact>
<Contact>
<Name>Advice on medico - wavy insured professional liability insurance - medical(MCI Inc. )</Name>
<Phone>03-6380346</Phone>
<Fax>03-6380345</Fax>
<Hours>NA</Hours>
</Contact>
<Contact>
<Name>Urgent questions on Medico - Records (other than the hours at the office )</Name>
<Phone>052-227633</Phone>
<Fax>NA</Fax>
<Hours>NA</Hours>
</Contact>
<Contact>
<Name>Inquiries about professional liability insurance - medical</Name>
<Phone>03-6380480</Phone>
<Fax>03-6380461</Fax>
<Hours>NA</Hours>
</Contact>
<Contact>
<Name>Team members focus</Name>
<Phone>1-700-700-251</Phone>
<Fax>NA</Fax>
<Hours>Sunday - Thursday 20:00 to 8:00</Hours>
</Contact>
<Contact>
<Name>Inquiries about Medical Risk Management(MRM)</Name>
<Phone>03-6380458</Phone>
<Fax>03-6380345</Fax>
<Hours>NA</Hours>
</Contact>
</Contacts>
</Department>
</EssentialPhoneNumbers>