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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -