[Flashcoders] XPath, apostrophe, XPath's escape chars?

2006-04-10 Thread Ramon Miguel M. Tayag
Hey everyone, I need to search an XML via a string that may contain apostrophes. ex.: var sDesc:String = XPath.selectNodes(_xml, //[EMAIL PROTECTED]' + sReleasedLabel + ']/@writeup)[0]; Is there a way to escape the apostrophe? The problem is that the sReleasedLabel, which contains Chinese New

Re: [Flashcoders] XPath, apostrophe, XPath's escape chars?

2006-04-10 Thread Steve Webster
Ramon, I need to search an XML via a string that may contain apostrophes. ex.: var sDesc:String = XPath.selectNodes(_xml, //[EMAIL PROTECTED]' + sReleasedLabel + ']/@writeup)[0]; Is there a way to escape the apostrophe? The problem is that the sReleasedLabel, which contains Chinese New Year

Re: [Flashcoders] XPath, apostrophe, XPath's escape chars?

2006-04-10 Thread Ramon Miguel M. Tayag
Steve, Thanks, I'll try using quotes. I do used apos; all the time, but it becomes an apostrophe somewhere there when Flash loads the XML doc. Thanks! On 4/10/06, Steve Webster [EMAIL PROTECTED] wrote: Ramon, I need to search an XML via a string that may contain apostrophes. ex.: