XPath never returning

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Guest

XPath never returning

Post 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,
ksader
Posts: 6
Joined: Wed Sep 22, 2004 1:04 am
Location: Geosynchronus Orbit
Contact:

Re: XPath never returning

Post 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.
ksader
Posts: 6
Joined: Wed Sep 22, 2004 1:04 am
Location: Geosynchronus Orbit
Contact:

Post by ksader »

Nevermind, nevermind - it helps if I actually use a valid XPath expression - sorry to wast everyone's time.

Doh! :oops: :oops: :oops:
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
Post Reply