Problem creating nodes from XML using Feeds/ Feed XPath Parser I'm trying to create nodes from an XML feed using Feeds XPath Parser.

Some of the data appears to import, but not all fields are being populated or populated correctly.

Here's a snippet of the feed:

&lt;merchantProductFeed&gt;
&lt;script/&gt;
&lt;SCRIPT/&gt;
&lt;merchant id="2607" name="Business IT Online Office Shop"&gt;
&lt;prod id="49194411"&gt;
&lt;pId&gt;571895&lt;/pId&gt;
&lt;text&gt;
&lt;name&gt;
Avery afterBURNER Label System Software with Applicator 10 Inserts Ref AB1800 [24 Labels]
&lt;/name&gt;
&lt;desc&gt;
Avery afterBURNER Label System Software with Applicator 10 Inserts Ref AB1800 [24 Labels].- Includes software, applicator, 24 labels and 10 inserts.- For Professional CD labels and inserts.- No Touch labels - unique design of the label sheets mean you can apply the label to the CD/DVD without touching the printed design or the adhesive.- 20 premium matt and 4 photo quality glossy labels.- The curved design of the applicator means the label is rolled smoothly onto the CD/DVD.- Inserts include a CD jewel case insert cover and tray (including spine) - allowing design and print in one effort.- The software contains over 2000 clip art images, 120 pre-formatted label designs and much more.
&lt;/desc&gt;
&lt;/text&gt;
&lt;uri&gt;
&lt;awTrack&gt;
http://www.awin1.com/pclick.php?p=49194411&amp;a=953&amp;m=2607
&lt;/awTrack&gt;
&lt;awImage&gt;
http://images.productserve.com/preview/2607/49194411.jpg
&lt;/awImage&gt;
&lt;mLink&gt;
http://www.businessitonline.com/avery-afterburner-label-system-software-with-applicator-10-inserts-ref-ab1800-24-labels.bprod?inctax=true
&lt;/mLink&gt;
&lt;mImage&gt;
http://www.businessitonline.com/eCommImages/571895.jpg
&lt;/mImage&gt;
&lt;/uri&gt;
&lt;price curr="GBP"&gt;
&lt;buynow&gt;15.56&lt;/buynow&gt;
&lt;delivery&gt;5.95&lt;/delivery&gt;
&lt;/price&gt;
&lt;cat&gt;
&lt;awCatId&gt;68&lt;/awCatId&gt;
&lt;awCat&gt;Software&lt;/awCat&gt;
&lt;mCat&gt;Machines and supplies&gt;Computer Software&lt;/mCat&gt;
&lt;/cat&gt;
&lt;brand/&gt;
&lt;/prod&gt;


There are several more products in the document, structured in the same way.

In the feed importer, I've set the context as //merchantProductFeed/merchant/prod.

I have two fields to populate: 'title' (text) and 'cost' (decimal).

The XPath query I'm using for title is 'text/name' and the query for cost is 'price/buynow'.

When creating the nodes, the title field is populated with the correct data, but includes the  and  element tags.

The cost field doesn't get populated.

I can't see where my XPath query is going wrong, so I'm unsure if it's a problem with that or something that isn't happening properly elsewhere in the XPath Parser module. So far as I can see, the mappings are set up as they should be.

Can anybody see if my XPath queries are correct for the XML feed above?
Have you tried turning on debugging in the Xpath Parser? It can give you an idea of what is going into the field before any interference like the formatting of the field itself.

I also use Firepath which is an add-on for Firefox for use with Firebug.
I don't use Xpath very often- kind of a quick means to an end- and the two of these tools have been invaluable. Firepath will help you find out if your Xpath is correct.