You are here:  » Help needed with Xpath in Magic Parser

Support Forum



Help needed with Xpath in Magic Parser

Submitted by mickey_nl on Mon, 2008-12-01 21:04 in

Hi all,

I have a problem with getting a Xpath working in Magic Parser.

I have a feed that uses the following Xpath to select a part of data in it: entities/accommodation[@cms-id="84660"]

I have tested this Xpath with the tester on: http://www.mizar.dk/XPath/
The Xpath work without any problem in here, buth somehow I cannot get it working in Magic Parser. Could anyone help me in the right direction? What am I diong wrong here?

Thanks,

Ivo

Submitted by support on Mon, 2008-12-01 21:11

Hello Ivo,

The equivalent Magic Parser Format String is likely to be something like:

xml|TOPLEVEL/ENTITIES/ACCOMMODATION/

This would return all accommodation records in the feed; where TOPLEVEL is the top level element of the XML. If you're not sure, feel free to email me the XML file (or a link to where I can download the XML it if it is very big) and I'll take a look for you...

Cheers,
David.