How do I access <?xml version="1.0" encoding="utf-8"?>
14 views (last 30 days)
Show older comments
<?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>
0 Comments
Answers (0)
See Also
Categories
Find more on String Parsing 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!