How do I access <?xml version="1.0" encoding="utf-8"?>
조회 수: 6 (최근 30일)
이전 댓글 표시
<?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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!