Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting strange XML Errors When Listing #33

Closed
doverradio opened this issue Feb 23, 2021 · 1 comment
Closed

Getting strange XML Errors When Listing #33

doverradio opened this issue Feb 23, 2021 · 1 comment

Comments

@doverradio
Copy link

Hi, I'm getting XML Parse errors but cannot find where it's coming from.

Error

{
  meta: {
    ShortMessage: 'XML Parse error.',
    LongMessage: 'XML Error Text: "; nested exception is: \n' +
      '\torg.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the 
entity reference.".',
    ErrorCode: 5,
    SeverityCode: 'Error',
    ErrorParameters: {
      Value: '; nested exception is: \n' +
        '\torg.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.'
    },
    ErrorClassification: 'RequestError'
  }
}

My description is as follows:

    Description: {
      __cdata: '<div>Now you can enjoy the authentic taste of wood-fired pizza made from scratch in your own 
home. This clay oven is sure to be a hit with friends and family and will add hours of enjoyment to parties. 
Showcase your skills cooking the perfect pie as you teach others the art of baking in a wood-fired oven. Ideal for large family style pies, individual pizzas and breads. You will need to purchase white sand (sold separately) for an insulating layer underneath the pizza stones inside the oven. Includes: clay oven, pizza stone, ember rake and stand Wide mouth for easy placement and retrieval of pizzas We recommend using hardwoods like oak, beech or birch that have been kiln dried, fruit woods can be used for flavor, but avoid sappy soft woods Cover, pizza peels and sand for insulation sold separately For outdoor use only with wood, not for use with charcoal, do not use chemical fire starters Be sure to allow for oven to cool completely before covering.</div>'
    }

I can't see where the issue is.

Can you help?

@doverradio doverradio changed the title Getting strang XML Errors When Listing Getting strange XML Errors When Listing Feb 23, 2021
@dantio
Copy link
Collaborator

dantio commented Feb 24, 2021

Can you try to replace all newlines with <br>element?

JSON to XML is parsed by https://www.npmjs.com/package/fast-xml-parser. Maybe you can find some more information there why the new line does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants