javascript - Get XML file with JQuery? -


i save following xml code xml file.

<z>   <f>{"attributes":{"type":"form"}}</f>   <m><%@ taglib prefix="zf" uri="http://www.zcore.org/tags/form" %></m> </z> 

now when want load jquery error :

timestamp: 5/5/2013 7:05:13 pm error: not well-formed

and <%@ ... %> syntax put in xml file.

how can read file xml file without error?

thanks all.

you need wrap values in cdata blocks xml parser ignores inner text. see below:

<z>   <f><![cdata[{"attributes":{"type":"form"}}]]></f>   <m><![cdata[<%@ taglib prefix="zf" uri="http://www.zcore.org/tags/form" %>]]></m> </z> 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -