PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Ajax Causing XML Parsing Error 76

  1. I built an iOS application several months ago in which I'm pulling a category feed, parsing, and displaying. If a Gravity Form (Gravity Forms form?) is embedded in the page with Ajax, I receive an XML parsing error (pasted below). If I disable Ajax, everything works well.

    I'm glad there's a simple fix, but is there any way to solve this? I enjoy the Ajax feature and would love to be able to use it seamlessly since the same posts are read both in a browser and in an iOS app.

    W3C Validation errors:
    Line 61, Column 1973: end tag for element "script" which is not open

    …gformRedirect();}});});/*]]>*/</script>]]></content:encoded> <wfw:commentRss>h…

    The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

    If this error occurred in a script section of your document, you should probably read this FAQ entry.

    Line 61, Column 1974: marked section end not in marked section declaration

    …formRedirect();}});});/*]]>*/</script>]]></content:encoded> <wfw:commentRss>ht…

    Posted 13 years ago on Tuesday May 10, 2011 | Permalink
  2. There wouldn't be a close script tag without an open script tag. I'm not sure what content you are pulling in, but something isn't right. Can you point to a link to a page that has this AJAX error?

    Posted 13 years ago on Tuesday May 10, 2011 | Permalink
  3. You can view a sample feed I set up here with the same post in it: http://beta.mtbethel.org/category/blog/feed

    It's a little hard to reproduce the error and may be due to the way iOS parses the XML, not the way GF writes it. The script tag is obviously written correctly- here's a snippet of just the item element: http://pastebin.com/imYAMiW2

    Thanks for your help! I realize this may not be a GF issue, but thought it was worth asking since you guys are helpful.

    Posted 13 years ago on Tuesday May 10, 2011 | Permalink