![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XPath for attributes with single and double quotes XPath for attributes with single and double quotesTo: NULL Date: 8/4/2004 3:17:00 PM In my XML document, some node attributes data contains both single quot and double quote characters, such as <input msg="Hello "World", What's up"/>. The double quotes are in form of escape sequence in the XML document. am not able to locate such elements using an XPath expression. I trie the following: //*[@msg="Hello "World", What's up"] Failes with string error at double quote before World //*[@msg='Hello "World", What's up'] Failes with string error at single quote after What //*[@msg="Hello "World", What's up"] I used the escpase sequence for double quote in my xpath which you ar seeing as acutal double quote in this post. No Error but does not return any node. //*[@msg="Hello "World", What's up"] I used the escpase sequence for both double quotes and single quotes i my xpath which you are seeing as acutal double quote and single quotesi this post No Error but does not return any node I tried both MSXML 3.0 and MSXML 4. Any Ideas? - giris ----------------------------------------------------------------------- Posted via http://www.forum4designers.co ----------------------------------------------------------------------- View this thread: http://www.forum4designers.com/message103989.htm | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
