Mike Boutin wrote:
Still wasnt able to get it working. I had to resort to using nodeValue instead. pain in the ass

Why is it a workaround? Doesn't the XPath return the XMLNode? You can't just use the regular toString-method of the XMLNode-object - that'll return the wrong encoding. The nodeValue *is* the only proper way to fetch the correct textdata without encoding.

If the XPath-method, that you use, is supposed to return the string value of a text element, then using nodeValue is a hack. But if you "only" use an XPath-method which is supposed to return an XMLNode, then it is *not* a hack, but doing exactly, what you are supposed to do. I haven't used this XPath-extension, but maybe I should check i out.

--
Morten Barklund - Information Architect - Shockwaved
Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark
Phone: +45 7027 2227 - Fax: +45 3369 1174
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to