Link to home
Start Free TrialLog in
Avatar of paddycobbett
paddycobbett

asked on

XMLParse() -allowing &nsbp;

Using Coldfusion8, I am parsing some xhtml via the XMLParse() function, but &nsbp; & and no doubt a few other similar codes are being rejected by the parser. How do i go about accepting these values? I can not remove them from the source since some some third party tool is generating the xhtml input.

Many thanks :)
Avatar of SidFishes
SidFishes
Flag of Canada image

try something like

<cfset vTest = "&nbsp">

<mynode><![CDATA[#vTest#]]></mynode>
Avatar of paddycobbett
paddycobbett

ASKER

Thanks SidFishes, one issue as i pointed out is that the xhtml code is being generated by a third party tool (output from the FCKeditor infact), so can not easily insert "<![CDATA" in to each node. The truth is i could strip out these values befoe parsing, but was wondering is there is a way so that these values can be accepted by the xml.

Something as simple as the attached can not be parsed via XMLParse for example.
<html>
<head></head>
<body>
blah blah &nsbp; blah
</body>
</html>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of SidFishes
SidFishes
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial