Is there an Actionscript 2.0 or Xpath equivalent to Javascript and
Actionscript 3.0's
decode(theStringWith"Special"Characters);
I am receiving an XML string from a webservice created by a .NET
developer - the text node that comes to me as:
<item>
This is the "String I want in quotes" please help.
</item>
I am using Xpath ("item/text()")to read the text node, but of course get
the literal " instead of ". The .NET developers said it's too much
work to go back and either 1) Make the XML values as node attributes
(which would escape/decode fine with Xpath, I tested it), or 2) Enclose
the text nodes in CDATA and add literal "" characters. So is there a
decode method in Actioscript?
I hate to write a find and replace function in Actionscript, but I might
have to do that - but then I have to account for any possible character
I might receive in the future. Is that my only option at this point? If
this is the only way, anyone have a good find and replace method?
Thanks
Jason Merrill
Bank of America
Learning Technology Solutions
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com