BI Publisher (MOSC)

MOSC Banner

XML-20201 and the Ampersand Character

edited Jul 16, 2018 5:30AM in BI Publisher (MOSC) 2 commentsAnswered ✓

Hello,

I have a PL/SQL package that generates XML.  If there is ever an ampersand in the data then there is trouble with XML Publisher -- the PDF will not create and I see the following error in the OPP log:

Error
Caused by: org.xml.sax.SAXParseException; lineNumber: 1245; columnNumber: 48; <Line 1245, Column 48>: XML-20201: (Fatal Error) Expected name instead of <.

I am using the correct escape mechanism for XML and replacing all ampersands with "&amp;" (without the quotes), but it still doesn't work with XML Publisher.  The XML renders just fine in a web browser.

Is there something needed in the RTF?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center