How do I access <?xml version="1.0" encoding="utf-8"?>

6 views (last 30 days)
<?xml version="1.0" encoding="utf-8"?>
<Master Name="EMP.Stefen">
<unidentified/>
<Address>
<pincode>12345</pincode>
</Address>
<city location="north region">
<phonenumber>2344583904</phonenumber>
<EmpItem Name="EMP.Stefen" streetname="mhroad" doorno"4"/>
</city>
</Master>
I would like to get below details:
EmpItem Name,streetname,doorno & location details separately.
the above is the typical example of my xml file,which i'm trying to access it!
Please explain how to access a tag which is not closed like below:
<EmpItem Name="EMP.Stefen" streetname="mhroad" doorno"4"/>
example -2
<?xml version="1.0" encoding="utf-8"?>
<AddressBook>
<Entry>
<Name>Friendly J. Mathworker</Name>
<PhoneNumber>(508) 647-7000</PhoneNumber>
<Address hasZip="no" type="work">3 Apple Hill Dr, Natick MA</Address>
</Entry>
</AddressBook>
how to handle Address tag? in order to access the ful info from Address ?

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!