Getting a subset of an Xml Document

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello.
I need to get a specific subsection of an xml string. Let me give an example...


<pre><?xml 1.0>
<Person>
<name>
<FirstName>
John
</Firstname>
<lastName>
Smith
<lastName>
</name>
</Person>[/code]
<br/>
If I just wanted the First Name along with all the XML markup and its Parent nodes, how would I go about getting that?


View the full article
 
Back
Top