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

조회 수: 6 (최근 30일)
Aravindan Samarasam
Aravindan Samarasam 2014년 9월 20일
편집: Aravindan Samarasam 2014년 9월 20일
<?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 ?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by