Hi sNIk!

Please show us the content of the variable 'result'. Otherwise we have 
no chance to verify the xpath.



sNIk schrieb:
> 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.
>
>   

-- 
Mit freundlichen Grüßen
Dietrich Streifert
--
Visionet GmbH
Firmensitz: Am Weichselgarten 7, 91058 Erlangen
Registergericht: Handelsregister Fürth, HRB 6573
Geschäftsführer: Stefan Lindner




------------------------------------------------------------------------------
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