# Having trouble with XML Edit / Read

**URL:** https://www.finalbuilder.com/forums/t/having-trouble-with-xml-edit-read/836
**Category:** Discussion
**Created:** [May 5, 2008, 11:15am UTC](https://www.finalbuilder.com/forums/t/having-trouble-with-xml-edit-read/836 "2008-05-05T11:15:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [May 5, 2008, 11:15am UTC](https://www.finalbuilder.com/forums/t/having-trouble-with-xml-edit-read/836/1 "2008-05-05T11:15:26Z")

</div>

Hi, I'm trying to read / edit an XML document and I'm having trouble. Specifically, I'm working on a Wix file.

Basically, I can't come up with an xpath query that modifies this:

|?xml version="1.0" encoding="utf-8"?|  
|Wix xmlns="[http://schemas.microsoft.com/wix/2006/wi](http://schemas.microsoft.com/wix/2006/wi)"|  
 |Product Id="{B6EB2F12-16B6-4AF9-958C-07CB9F2501BD}" /|  
|/Wix|

(having trouble pasting the xml in here)

I've tried /Wix/Product, //Product, Wix:Product, etc. Looks like a namespace problem, but I can't get it to work.

Does anyone have any advice?

I'm using FB 6.0.0.574

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [May 5, 2008, 11:59am UTC](https://www.finalbuilder.com/forums/t/having-trouble-with-xml-edit-read/836/2 "2008-05-05T11:59:40Z")

</div>

Ah, found an answer to my question here: [https://www.finalbuilder.com/resour...ode-error2](https://www.finalbuilder.com/resources/blogs/xml-actions-and-the-xpath-returned-no-node-error2)  
  
Checked Automatically use namespace prefix, entered x, change my xpath to /x:Wix/x:Product and it works.
