Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > XmlBeans Exception: Unexpected element: CDATA

Thread Tools

XmlBeans Exception: Unexpected element: CDATA

greenbird greenbird is offline
Junior Member
Join Date: Mar 2010
Posts: 1
While trying to parse an XML using xmlbeans Factory.parse(fileStream) the process generates the below Exception. There is a registered trademark symbol which seems to be causing the issue. If I remove the symbol and process the file, it processes and parses fine. Why would this be happening when is a UTF-8 character? Any help is appreciated!

org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
at$SaxLoader.lo ad(
at ject(
at ject(
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBa se.parse(

Caused by:
org.xml.sax.SAXParseException: Unexpected element: CDATA
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.repor tFatalError(
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse (
at$SaxLoader.lo ad(
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I un-CDATA my CDATA section and elaborate a transformation for the contained data? XML 3 03-06-2006 03:01 AM
XMLBeans and .NET XML Serialization - interop dc Java 0 02-11-2005 09:01 PM
XMLBeans compiler errors Java 0 12-02-2004 01:17 AM
XMLBeans compiler errors Java 0 12-02-2004 01:17 AM
Extracting CDATA Text without CDATA Tags??? John Davison Java 1 07-06-2004 11:00 PM