# XML Edit Bug with complicated XPath

**URL:** <https://www.finalbuilder.com/forums/t/xml-edit-bug-with-complicated-xpath/3359>\
**Category:** Bugs\
**Created:** [April 29, 2011, 7:12am UTC](https://www.finalbuilder.com/forums/t/xml-edit-bug-with-complicated-xpath/3359 "2011-04-29T07:12:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nelsonwolf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/b9e5f3/32.png) [@nelsonwolf](https://www.finalbuilder.com/forums/u/nelsonwolf)\
**Post date:** [April 29, 2011, 7:12am UTC](https://www.finalbuilder.com/forums/t/xml-edit-bug-with-complicated-xpath/3359/1 "2011-04-29T07:12:06Z")

</div>

&nbsp;Hi,

I have an example here that works in FB6, but stopped working in 7. (Forgot to log this yesterday) &nbsp;My other XML Edit actions are working, but this more complicated one is failing. I've attached FB6 and FB7 samples.

XPath: /msi/table[@name="ISPathVariable"]/row/td[text()="INSTALLER\_BUILD\_ROOT"]/following-sibling::\*

Message:

Edit XML File [File: J:\temp\XMLEditBug\FB7\test.ism]

&nbsp;&nbsp; &nbsp;Status: Error

Action Messages:

Opening XML file J:\temp\XMLEditBug\FB7\test.ism

Error parsing xml file - reason: DTD is prohibited.

, source text: \<!DOCTYPE msi [

&nbsp;

&nbsp;

&nbsp;

[XMLEditBug.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/e/e1a1ed83860254bd05aebad35b401d3e2399e2b6.zip) (226.557 KB)

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [April 30, 2011, 5:27am UTC](https://www.finalbuilder.com/forums/t/xml-edit-bug-with-complicated-xpath/3359/2 "2011-04-30T05:27:03Z")

</div>

This is a side effect of defaulting to MSXML 6 in FinalBuilder 7 (FB6 uses MSXML 4).   
  
 The good news is the build I posted yesterday already has a new option to deal with this on the XML Document Define action (Allow DTD’s). Unfortunately it looks like it is only available when MSXML 6 is explicitly set, which won’t work if you have Highest Available set. I just checked in a fix for that, will post the build url here when it’s done.

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [May 2, 2011, 1:53am UTC](https://www.finalbuilder.com/forums/t/xml-edit-bug-with-complicated-xpath/3359/3 "2011-05-02T01:53:31Z")

</div>

Build 1197 (posted in your subst action thread) includes the fix for this.

---

<div class="post-metadata">

**Author:** ![nelsonwolf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/b9e5f3/32.png) [@nelsonwolf](https://www.finalbuilder.com/forums/u/nelsonwolf)\
**Post date:** [May 4, 2011, 2:44am UTC](https://www.finalbuilder.com/forums/t/xml-edit-bug-with-complicated-xpath/3359/4 "2011-05-04T02:44:59Z")

</div>

Hi Vincent,   
  
 I set my action to use MSXML 4 specifically for now, that seems to work as expected on both FB6 and 7.   
  
 Thanks!   
 -Nelson
