# Simple xml question

**URL:** https://www.finalbuilder.com/forums/t/simple-xml-question/352
**Category:** Discussion
**Created:** [February 12, 2007, 12:20pm UTC](https://www.finalbuilder.com/forums/t/simple-xml-question/352 "2007-02-12T12:20:00Z")
**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: [February 12, 2007, 12:20pm UTC](https://www.finalbuilder.com/forums/t/simple-xml-question/352/1 "2007-02-12T12:20:00Z")

</div>

Hello,  
  
I have not much/no experiences with XML. I am try to read the following XML file:

- \<xml xmlns:s=“ **uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882** ” xmlns:dt=“ **uuid:C2F41010-65B3-11d1-A29F-00AA00C14882** ” xmlns:rs=“ **urn:schemas-microsoft-com:rowset** ” xmlns:z=" **#RowsetSchema**"\>

+ \<s:Schema id=“ **RowsetSchema** ”\>

- \<s:ElementType name=“ **row** ” content=“ **eltOnly** ”\>

- \<s:AttributeType name=“ **c0** ” rs:name=“**MAX(DEVELOPMENT\_ID)**” rs:number=“ **1** ” rs:nullable=“ **true** ”\>

  \<s:datatype dt:type=“ **number** ” rs:dbtype=“ **varnumeric** ” dt:maxLength=“ **20** ” rs:scale=“ **0** ” rs:precision=“ **38** ” /\> 

  s:AttributeType\>

  \<s:extends type=“ **rs:rowbase** ” /\> 

  s:ElementType\>

  s:Schema\>

- \<rs:data\>

  \<z:row c0=“ **294** ” /\> 

  rs:data\>

  xml\>  
  
I want to store the value 294 of attribute in a variable. How do I implement the action Read XML Value to Variable. What is the Xpath and do I to use the option read an attribute of the XPath node?  
  
Thanks in advance.  
  
Bye  
Ralph

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [February 12, 2007, 11:39am UTC](https://www.finalbuilder.com/forums/t/simple-xml-question/352/2 "2007-02-12T11:39:22Z")

</div>

Hi Ralph,  
  
The XPath to read the node is ‘/xml/rs:data/z:row’ and you will need to check ‘Read an attribute of the XPath Node’ specifying ‘c0’.  
  
Also make sure ‘Expand namespace prefixes declard in the document root node’ is enabled and the default namespace identifier prefix is empty on the MSXML Parser tab.  
  
Regards,  
Paul.
