# Read XML Value to variable

**URL:** https://www.finalbuilder.com/forums/t/read-xml-value-to-variable/4273
**Category:** Discussion
**Created:** [May 15, 2007, 6:43am UTC](https://www.finalbuilder.com/forums/t/read-xml-value-to-variable/4273 "2007-05-15T06:43:34Z")
**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 15, 2007, 6:43am UTC](https://www.finalbuilder.com/forums/t/read-xml-value-to-variable/4273/1 "2007-05-15T06:43:34Z")

</div>

Hi,  
  
First of all good work guys…Automize 2 is great. I am evaluation Automise 2 right now. I have one question regarding XML Action : Read XML Value to Variable…  
  
  
Is there a place Automise could look for the DTD/XSD files? In order for the Read XML Value to work with an xpath query I had to copy the Test.dtd file to the same location as the XML file I was reading. This XML is well formed and has the following in the header:   
  
\<?xml version="1.0" encoding="UTF-8"?\> \<?xml version="1.0" encoding="UTF-8"?\>   
  
!DOCTYPE Test SYSTEM "Test.dtd"  
  
  
Some of the XML files reference an URI to find the DTD/XSD’s.   
  
My xpath expression was:   
  
/Test/Payload[1]/Message[1]/DeliveryMessage[1]/DeliveryMessageHeader[1]/DeliveryMessageNumber[1]

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [May 16, 2007, 3:18am UTC](https://www.finalbuilder.com/forums/t/read-xml-value-to-variable/4273/2 "2007-05-16T03:18:20Z")

</div>

Hi Ron,  
  
We can’t make Automise search for DTDs in other places, but what I’ve done instead is added options to disable “Validate on parse” and/or “Resolve external definitions” on each XML action. If you disable both these options, the XML Parser won’t care if it can’t find the DTD file.  
  
Here’s the Automise 2 test build with the new feature:  
  
[http://www.automise.com/downloads/automise/200/AT200\_85.exe](http://www.automise.com/downloads/automise/200/AT200_85.exe)  
  
Please let us know how you go.  
  
- Angus
