Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XMLType and Curled Double Quotes (8220, 8221)

9909Dec 29 2004 — edited Dec 29 2004
The following select fails with an XML parser error:

select xmltype('<tag>&#8220;A&#8221;</tag>') from dual

I'm trying to definitively determine why...

We have XML that goes into a CLOB column in our 9.2 database, then is put into an XMLTYPE variable (in PL/SQL) and manipulated as XML. (The above select statement is just a highly-simplified test case, but we do use XMLTYPE in this manner in our select to convert the CLOB to an XMLTYPE instance.) The data has occasional instances of curled double quotes, represented as &#8220; and &#8221; and when these exist, the XML parse error occurs.

My impression is that these Unicode representations of the curled double quote characters are acceptable in XML. They parse and validate fine in XMLSpy for whatever that's worth. Also, I can construct a DOM document in Java, using Oracle's XMLParser V2, that contains these Unicode representations.

Why can't I do this using XMLTYPE in PL/SQL?

Thanks for any assistance!

Jim
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 26 2005
Added on Dec 29 2004
1 comment
810 views