Hi,

How can I navigate to a document location using XMLCursor.toChild()
without supplying a namespace?

 

My current call looks like:

 

XmlCursor documentCursor = myXmlObject.newCursor();

documentCursor.toChild("http://types.mycompany.com/ServiceMetaTypes/1/1";
, "TrackAndTrace");

 

This works fine and the TrackAndTrace element is found as it should be. 

I'd like to insulate the logic from changes to the namespace, e.g. the
version being incremented to
http://types.mycompany.com/ServiceMetaTypes/1/2
<http://types.mycompany.com/ServiceMetaTypes/1/2> , by ignoring the
namespace but following never finds anything.

 

XmlCursor documentCursor = myXmlObject.newCursor();

documentCursor.toChild("TrackAndTrace");

 

I need to use the XMLCursor as opposed to using a query as I don't have
a query engine available in this particular system. 

 

Any help appreciated.

Good planets are hard to find - please think of the environment before you 
print this email.
____________________________________________________________________
CAUTION - This message may contain privileged and confidential 
information intended only for the use of the addressee named above.
If you are not the intended recipient of this message you are hereby 
notified that any use, dissemination, distribution or reproduction 
of this message is prohibited. If you have received this message in 
error please notify Air New Zealand immediately. Any views expressed 
in this message are those of the individual sender and may not 
necessarily reflect the views of Air New Zealand.
_____________________________________________________________________
For more information on the Air New Zealand Group, visit us online
at http://www.airnewzealand.com 
_____________________________________________________________________

Reply via email to