Page 1 of 1

XPath never returning

Posted: Wed Sep 22, 2004 1:07 am
by Guest
Greetings,

I'm trying to use the Xpath box provided on the editor to poke around my XML file(and improve my Xpath skills). I'm working with a large file(3Mb). When I enter in an absolute path like /root/child::node() - this is a node with no children, the Xpath expression doesn't return.

My Cpu hits 100% and I can't figure out how to make oxygen stop its Xpath query.

Any ideas?
thanks,

Re: XPath never returning

Posted: Wed Sep 22, 2004 1:09 am
by ksader
Anonymous wrote:Greetings,

I'm trying to use the Xpath box provided on the editor to poke around my XML file(and improve my Xpath skills). I'm working with a large file(3Mb). When I enter in an absolute path like /root/child::node() - this is a node with no children, the Xpath expression doesn't return.

My Cpu hits 100% and I can't figure out how to make oxygen stop its Xpath query.

Any ideas?
thanks,
Just attaching my username to this post - thanks.

Posted: Wed Sep 22, 2004 1:13 am
by ksader
Nevermind, nevermind - it helps if I actually use a valid XPath expression - sorry to wast everyone's time.

Doh! :oops: :oops: :oops:

Posted: Wed Sep 22, 2004 11:55 am
by george
Hi,

I guess also /root/child::node() will return and display the info but that does not mean a node with no children but any node inside your root element and for a 3M file that can be a lot of information that needs to be determined together with the location for each hit and displayed in a list in the results area.
A possible approach will be to test the XPath on a cut down sample document and then apply it on your real document.

Best Regards,
George