acibilous / sfcc-catalog-reducer

12 stars 5 forks source link

Ampersand is not escaped in xml #4

Closed okater closed 1 year ago

okater commented 2 years ago

Ampersand is not escaped in xml Should be escaped as $amp; image

Results in error during import

hryhola commented 2 years ago

Did you mean that \& string should be replaced with $amp;? It's impossible to run the script if some attribute value contains exact & symbol - sax parser will receive an error.

Untitled
maxjf1 commented 1 year ago

The problem happens with me too.

navigation xml before reducing:

image

After reducing:

image

When uploading to SFCC it gives an XML error. Manually replacing the & to & fixes it

zhornyk commented 1 year ago

Issue was fixed. NPM package was updated to v2.1.0