xpath problem
Posted: Wed Dec 13, 2006 2:57 pm
This is my xml. With the build in xpath (i prefer 1.0) I want to select nodes which are after the node NISSE. Because there is a namespace in that node, i can't get the nodes which are in this part of the xml.
Any suggestion p.ex. how i can get the text from the node Origin which is in the node AppHeader ?
Thanks a lot for your answers ...
<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="http://www.rsvz-inasti.fgov.be/schemas/ ... es/Mailbox"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
<Origin>2000</Origin>
<Destination>003X</Destination>
</Header>
<Body>
<Mailbox>
<MailboxNbr>000000000000128</MailboxNbr>
<MessageCount>000000000000017</MessageCount>
<CreationDate>2006-12-12</CreationDate>
<CreationTime>12:47:21</CreationTime>
<Message>
<NISSE xmlns="http://www.rsvz-inasti.fgov.be/schemas/ ... /Transport">
<AppHeader>
<DocumentId>ST2B</DocumentId>
<Origin>PENS</Origin>
<Destination>003</Destination>
<VersionNbr>1.0</VersionNbr>
</AppHeader>
</NISSE>
</Message>
</Mailbox>
</Body>
</Envelope>
Any suggestion p.ex. how i can get the text from the node Origin which is in the node AppHeader ?
Thanks a lot for your answers ...
<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="http://www.rsvz-inasti.fgov.be/schemas/ ... es/Mailbox"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
<Origin>2000</Origin>
<Destination>003X</Destination>
</Header>
<Body>
<Mailbox>
<MailboxNbr>000000000000128</MailboxNbr>
<MessageCount>000000000000017</MessageCount>
<CreationDate>2006-12-12</CreationDate>
<CreationTime>12:47:21</CreationTime>
<Message>
<NISSE xmlns="http://www.rsvz-inasti.fgov.be/schemas/ ... /Transport">
<AppHeader>
<DocumentId>ST2B</DocumentId>
<Origin>PENS</Origin>
<Destination>003</Destination>
<VersionNbr>1.0</VersionNbr>
</AppHeader>
</NISSE>
</Message>
</Mailbox>
</Body>
</Envelope>