Marc,
I'm not sure of it and I cannot test if from here, but this could be a shortcomming of dom4j to resolve namespaces in xpaths that are nested inside other elements.
What happens if you declare your prop-namespace in your Envelope element?
regards,
Maarten
Marc Pellmann <[EMAIL PROTECTED]> wrote:
Marc Pellmann <[EMAIL PROTECTED]> wrote:
Hi!
I have the following statement, which gives null - but should not!
document.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Header[1]/prop:properties[1]");
If I only use
document.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Header[1]);
I get the header document.
--- The Document ---
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
<SOAP-ENV:Header>
<prop:properties xmlns:prop="http://schemas.biztalk.org/btf-2-0/properties" SOAP-ENV:mustUnderstand="1">
<prop:identity>uuid:2CA2052E-EFED-4A93-A452-2866408E199F</prop:identity>
<prop:sentAt>2002-12-11T16:20:36+00:00</prop:sentAt>
<prop:expiresAt>2002-12-11T16:52:36+00:00</prop:expiresAt>
<prop:topic>http://www.kuehneNagel.com/soapService</prop:topic>
</prop:properties>
</SOAP-ENV:Header>
</SOAP-ENV:Envelope>-- Viele Grüße / best regards Marc Pellmann _______________________________ inubit - the integration experts inubit AG Lützowstraße 105-106 D-10785 Berlin Fon: +49.30. 72 61 12-132 Fax: +49.30. 72 61 12-100 Freecall: 0800-go inubit Web: www.inubit.com
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web