Looking for work? Check out our jobs area.
*/

Other Views

corner
*/

XML FAQ - Reading a Specific Record in XML

How to read a specific record in XML?

You can use an XPath expression.

Say you have something like this:

<?xml version="1.0" encoding="ISO-8859-1" ?> 
<lang> 
<En> 
<item1>Index</item1> 
<item2>Information</item2> 
<item5>Contact</item5> 
<item6>Search</item6> 
</En> 
<Se> 
<item1>Start</item1> 
<item2>Information</item2> 
<item5>Kontakt</item5> 
<item6>Sök</item6> 
</Se> 
</lang>


For example you want to read only En or Se record:

To read En record: you can give path as: /lang/En To read Se record: you can give path as: /lang/Se

Back to XML FAQ


corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.
Resource Listings