I was able to use xpath to return <title>some html</title> then use
nodeValue on that.
but I *wish* i could just do /xmlnode/xmlnode/text() and cut nodeValue
out but i dont think its possible.
Morten Barklund Shockwaved wrote:
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.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders