I'm having the same issue even without XPATH, I have a CDATA section in my XML
and the text field renders the text and the HTML tags without rendering HTML,
if I cut and paste the HTML to a string and set the text field to that it works
as expected. I've done this before and it worked,
Don't know if this helps, but for html, you set:
textArea.html = true;
then:
textArea.text = thestring;
,but for textField, you set:
textField.html = true;
then:
textField.htmlText = thestring;
But you probably knew that. I think that's really confusing the way
Macromedia coded that. Guess
[EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 12/9/05 1:36 PM
Subject: RE: [Flashcoders] Xpath and HTML tags inside XML bug?
Don't know if this helps, but for html, you set:
textArea.html = true;
then:
textArea.text = thestring;
,but for textField
Yes this is how I have been fixing the problem. Seems like a pain to
have to use both methods, rather than just using the xpath.
Morten Barklund Shockwaved wrote:
Merrill, Jason wrote:
[...]
Problem overview: using Xpath, HTML tags inside of XML does not render,
even with CDATA tags
Quote: http://www.w3.org/TR/xpath#section-Expressions
I can never seem to make heads or tails of the w3.org documentation -
maybe I'm just dumb, but it's always information overload to me.
Mike, since we seem to be having the exact same problem, did you get it
working? If so, can you send a
Still wasnt able to get it working. I had to resort to using nodeValue
instead. pain in the ass
Mike Boutin
Juicy Studios
Merrill, Jason wrote:
Quote: http://www.w3.org/TR/xpath#section-Expressions
I can never seem to make heads or tails of the w3.org documentation -
maybe I'm just
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
I was able to use xpath to return titlesome 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
Why is it a workaround? Doesn't the XPath return the XMLNode?
I haven't used this XPath-extension, but maybe I should check i out.
Morten, I'm not sure it returns the actual node - it might convert it to
another object instead because I too cannot get your suggestions to
work. Could you send an
-Learning Solutions | icfconsulting.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Mike Boutin
Sent: Wednesday, December 07, 2005 2:46 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Xpath and HTML tags inside XML bug
try dropping the last slash in ur xpath statement
On 12/7/05, Merrill, Jason [EMAIL PROTECTED] wrote:
Why is it a workaround? Doesn't the XPath return the XMLNode?
I haven't used this XPath-extension, but maybe I should check i out.
Morten, I'm not sure it returns the actual node - it might
sorry no, u r doing a query which returns an array, try slectSingleNode, and
that will work
On 12/7/05, Johannes Nel [EMAIL PROTECTED] wrote:
try dropping the last slash in ur xpath statement
On 12/7/05, Merrill, Jason [EMAIL PROTECTED] wrote:
Why is it a workaround? Doesn't the XPath
I was able to use xpath to return titlesome html/title then use
nodeValue on that.
Can you send me an actionscript example of how you did that? I'm not
even that far yet.
This returns undefined:
myNode = XPath.selectNodes(config_xml,config/welcome/introduction);
This works and returns the
string = XPath.selectNodes(my_xml, /path/to/nodes).nodeValue;
This results in undefined.
Johannes Nel wrote:
try dropping the last slash in ur xpath statement
On 12/7/05, Merrill, Jason [EMAIL PROTECTED] wrote:
Why is it a workaround? Doesn't the XPath return the XMLNode?
I haven't used
even in this case the result is undefined
string = XPath.selectNodes(my_xml, /pathto[1]/xml).nodeValue; !--
single node
Johannes Nel wrote:
sorry no, u r doing a query which returns an array, try slectSingleNode, and
that will work
On 12/7/05, Johannes Nel [EMAIL PROTECTED] wrote:
try
use the selectSingleNode method or use the array accessor
On 12/7/05, Mike Boutin [EMAIL PROTECTED] wrote:
even in this case the result is undefined
string = XPath.selectNodes(my_xml, /pathto[1]/xml).nodeValue; !--
single node
Johannes Nel wrote:
sorry no, u r doing a query which returns
Where is the documentation on selectSingleNode
It doesnt seem to be in flash 8 help files.
Johannes Nel wrote:
use the selectSingleNode method or use the array accessor
On 12/7/05, Mike Boutin [EMAIL PROTECTED] wrote:
even in this case the result is undefined
string =
Mike Boutin wrote:
even in this case the result is undefined
string = XPath.selectNodes(my_xml, /pathto[1]/xml).nodeValue;
I've just gotten the libraries, and it is exactly as I expected.
selectNodes returns an Array of XMLNode-objects. Even the notion of
/text() is just to get the node,
Perfect, thanks for the help!
Morten Barklund Shockwaved wrote:
Mike Boutin wrote:
even in this case the result is undefined
string = XPath.selectNodes(my_xml, /pathto[1]/xml).nodeValue;
I've just gotten the libraries, and it is exactly as I expected.
selectNodes returns an Array of
By the way Martin, I hope I didn't come across as being unappreciative -
thanks again for your help. Mike too. Mike, if it's any less painful,
while not pretty, I knocked it down to a single line and this works:
myText=XMLNode((XPath.selectNodes(myxml,myNodePath/mynode())[0])).node
Value;
Sweet that works. thanks for the update! ;)
Mike Boutin
Juicy Studios
Merrill, Jason wrote:
By the way Martin, I hope I didn't come across as being unappreciative -
thanks again for your help. Mike too. Mike, if it's any less painful,
while not pretty, I knocked it down to a single line and
21 matches
Mail list logo