xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Ignore html during javascript xml parse


Subject: [xsl] Ignore html during javascript xml parse
From: "Ted G." <cowscanfly@xxxxxxxxxxx>
Date: Thu, 5 Oct 2006 21:31:34 +0300

if the usual javascript code

	...
	req = new XMLHttpRequest();
	...
	response  = req.responseXML.documentElement;
	method    = response.getElementsByTagName('method')[0].firstChild.data;
	result    = response.getElementsByTagName('result')[0].firstChild.data;

reads from

	<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
	<response>
  		<method>mymethod</method>
  		<result>I want <b>this</b> and this and <i>this<i></result>
	</response>

How can I make it provide:

	method = mymethod
	result = I want <b>this</b> and this and <i>this<i>

ie how do I ignore html tags? I would prefer not to change "<", ">" etc into their codes.

I have tried some xsl templates but they break the script; responseXML.documentElement seems to choke on them.

cheers.


Current Thread
Keywords
xsl
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor