javascript - Get XML file with JQuery? -
this question has answer here:
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
Post a Comment