Hi,

you can use qx.xml.Element.selectNodes or 
qx.xml.Element.selectSingleNode for this. Assuming doc is your XML 
document and you're looking for the value of the first "foo" element's 
"bar" attribute, use an XPath query like this:

qx.xml.Element.selectSingleNode(doc, "//foo/@bar");


Regards,
Daniel

Andreas G. schrieb:
> hello.
> 
> i need to get the value of an attribute in a xml-file. i couldn't find any
> method to do this.
> 
> cheers

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to