Avatar of Darius
Darius
Flag for Lithuania asked on

I'm using XML(xslt) - How to fix the BOM issue

Hi Guys,

I am using xslt(mapping) to create output xml file.
Issue: target system compline about added BOM character.

These outputs configurations does not fix an issue
<xsl:output method="xml" version="1.0" encoding="utf-8" omit-xml-declaration="no" indent="yes"/>
 <xsl:output method="xml" version="1.0" encoding="ASCII" omit-xml-declaration="no" indent="yes"/>

Open in new window


I'm using online validator to test output xml file
http://validator.w3.org/i18n-checker/#validate-by-upload+

results
Capture.PNG
Any advice?

Thank you!
XML* XSLT

Avatar of undefined
Last Comment
Gertone (Geert Bormans)

8/22/2022 - Mon
SOLUTION
Gertone (Geert Bormans)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Darius

ASKER
We created an internal transformer service in C# that uses the class XslTransformer.
ASKER CERTIFIED SOLUTION
Gertone (Geert Bormans)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Ray Paseur

Some of this information might be helpful, too.  I found that some common text editors will add a BOM, whether you want it or not.

See BOM is Decidedly Not Da Bomb in this article:
https://www.experts-exchange.com/articles/11880/Unicode-and-Character-Collisions.html
Gertone (Geert Bormans)

Thanks for the article reference Ray. Have just scanned through it but it definitely deserves some in detail reading later.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck