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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -