Say we have an XML document as
follows:
<Patient> <Age>39</Age> <Gender>Female</Gender> <ContactInfo> <PhoneNumber>123-456-7890</PhoneNumber> <EmailAddress>[EMAIL PROTECTED]</EmailAddress> </ContactInfo> </Patient> And we use the XPath to only get the <ContactInfo>, e.g., "//ContactInfo" which should get the result as follows; <ContactInfo> <PhoneNumber>123-456-7890</PhoneNumber> <EmailAddress>[EMAIL PROTECTED]</EmailAddress> </ContactInfo> My question is: [Q] Is there way to get the rest of XML document in a simple way. The rest of XML document should be as follows; <Patient> <Age>39</Age> <Gender>Female</Gender> </Patient> Any comments? Thank you. Regards, Pae |
- [dom4j-user] DOM4J User Archives 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