Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-09 Thread grant
Merrill, Jason [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: > textAr

RE: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-09 Thread Merrill, Jason
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 t

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-09 Thread grant
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, differen

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
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

RE: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Merrill, Jason
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; Ja

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
Morten Barklund Shockwaved Sent: Wednesday, December 07, 2005 4:02 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Xpath and HTML tags inside XML bug? Mike Boutin wrote: even in this case the result is undefined string = XPath.selectNodes(my_xml, "/pathto[1]/xml").nodeV

RE: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Merrill, Jason
Solutions | icfconsulting.com >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Morten Barklund Shockwaved >>Sent: Wednesday, December 07, 2005 4:02 PM >>To: Flashcoders mailing list >>Subject: Re: [Fl

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
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

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Morten Barklund Shockwaved
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, w

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
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 = XPath.selectNodes

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Johannes Nel
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; >>j:pn > >> > >> > >> > > > > > > > >-- > >j:pn > >___

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
even in this case the result is undefined string = XPath.selectNodes(my_xml, "/pathto[1]/xml").nodeValue;

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
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 us

RE: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Merrill, Jason
>>I was able to use xpath to return some html 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 (

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Johannes Nel
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

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Johannes Nel
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 -

RE: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Merrill, Jason
SUCKS. Jason Merrill | E-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 l

RE: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Merrill, Jason
>>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

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
I was able to use xpath to return some html 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 u

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Morten Barklund Shockwaved
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 nodeV

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
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

RE: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Merrill, Jason
>>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 c

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
Quote: http://www.w3.org/TR/xpath#section-Expressions Each character within a CDATA section is treated as character data. Thus, || in the source document will treated the same as |<|. Both will result in a single |<| character in a text node in the tree. Thus, a CDATA section is treated as if

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
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 appli

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Morten Barklund Shockwaved
Merrill, Jason wrote: [...] Problem overview: using Xpath, HTML tags inside of XML does not render, even with CDATA tags applied. [...] Does the same thing with a regular dynamic text field. If I hard code the same string directly in the .fla, it renders properly in the text field and/or comp

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
Yes im still having this problem as we speak. A previous post said to use unicode and just use xhtml straight in the tags without even using CDATA but I am still unable to get it working correctly. Mike Boutin Juicy Studios Merrill, Jason wrote: Searched Google, no dice, when the chattyfig