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



Reply via email to