Thank you for your reply as well as code snippet.
But that's not exactlly
what I was looking for.
My applogies if I did not explained well in my
prevous message. The
code snippet in your message will be able to get
the <ContactInfo>
subemelement fine. And I have no problem to
getting that.
My question was to get the rest of XML DOM,
excluding the prviously
selected sublelement, <ContactInfo>. To
wit, I am looking for a simple
way to get the result without parsing the XML document by excluding
the previously selected subelement.
The result I am expecting to
get
is as follows:
Initial XML:
<Patient>
<Age>39</Age> <Gender>Female</Gender> <ContactInfo> <PhoneNumber>123-456-7890</PhoneNumber> <EmailAddress>[EMAIL PROTECTED]</EmailAddress> </ContactInfo> </Patient> The result XML:
<Patient>
<Age>39</Age> <Gender>Female</Gender> </Patient> Thank you.
Any more comments?
Regards,
Pae
|
- [dom4j-user] XPath result from a DOM and the Rest of DOM Pae Choi
- [dom4j-user] DOM4J User Archives Pae Choi
- Re: [dom4j-user] XPath result from a DOM and the Rest ... Benjamin Kopic
- Re: [dom4j-user] XPath result from a DOM and the R... Pae Choi
- Re: [dom4j-user] XPath result from a DOM and t... Pae Choi
- Re: [dom4j-user] XPath result from a DOM and t... David D. Lucas
- Re: [dom4j-user] XPath result from a DOM a... Pae Choi
- Re: [dom4j-user] XPath result from a ... David D. Lucas
- Re: [dom4j-user] XPath result fro... Pae Choi
- Re: [dom4j-user] XPath result... David D. Lucas
- [dom4j-user] Validation Igor Akkerman
- Re: [dom4j-user] XPath result... Pae Choi
- Re: [dom4j-user] XPath result from a DOM and t... James Strachan