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 questions are:

1. 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>

2. Is xalan support XPath?

Any comments? Thank you.

Regards,


Pae



Reply via email to