0

XML Document -- Error

I am trying to merge multiple product feeds from my site into one XML site.

I am getting this error

Error: Invalid XML document. Root cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 2; The markup in the document preceding the root element must be well-formed.

This is my code

<{% layout none %}

{% paginate collections.winefeed.products by 1000 %}{% for product in collections.winefeed.products %}{{product.title}}|{{ product.price | money }}|{% for variant in product.variants %}{{ product.variants.first.option2 }}|{{ product.variants.first.option1 }}{% endfor %}|{{ shop.url }}{{ product.url }}|

{% endfor %}

{% endpaginate %}

I'm not sure what is causing this error and how to fix it.

Thanks for you help

by
2 Replies
  • EDIT:

    Here is the code;

    <{% layout none %}

    {% paginate collections.winefeed.products by 1000 %}{% for product in collections.winefeed.products %}{{product.title}}|{{ product.price | money }}|{% for variant in product.variants %}{{ product.variants.first.option2 }}|{{ product.variants.first.option1 }}{% endfor %}|{{ shop.url }}{{ product.url }}|

    {% endfor %}

    {% endpaginate %}

    0
  • Hello,

    First of all, post your pipe's link.

    Second, what do you mean by "XML site" ? are talking about XSLT? or did you mean XML feed?

    0

Recent Posts

in Pipes