hello again. ;)

i have the following scenario:

* load an xml-file as string ( rpc )
* convert string to document
* access elements of that document

i did this so far:

var doc = qx.xml.Document.fromString( result );
alert( qx.xml.Document.isXmlDocument( doc ) ); // true

var xml

xml = "XML-Test\n----------\n";
xml += "* " + qx.xml.Element.getSingleNodeText( doc,
"/MainMenu/MenuItem/MenuName/" ) + " \n";
xml += "** " + " ... \n";
xml += "** " + " ... \n";

alert( xml );

getSingleNodeText gives me a null. is my xpath-syntax wrong? and is "var doc
= qx.xml.Document.fromString( result );" the right approach at all? "alert(
result );" shows me the right content of my xml-file loaded from the server.

-- 
View this message in context: 
http://n2.nabble.com/some-questions-regarding-xml-processing-tp2798140p2798140.html
Sent from the qooxdoo mailing list archive at Nabble.com.


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to