Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

XmlBeans Exception: Unexpected element: CDATA

 
 
greenbird greenbird is offline
Junior Member
Join Date: Mar 2010
Posts: 1
 
      03-15-2010
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 org.apache.xmlbeans.impl.store.Locale$SaxLoader.lo ad(Locale.java:3471)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlOb ject(Locale.java:1270)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlOb ject(Locale.java:1257)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBa se.parse(SchemaTypeLoaderBase.java:345)


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

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? troppfigo@excite.it 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 johnqdump@hotmail.com Java 0 12-02-2004 01:17 AM
XMLBeans compiler errors johnqdump@hotmail.com Java 0 12-02-2004 01:17 AM
Extracting CDATA Text without CDATA Tags??? John Davison Java 1 07-06-2004 11:00 PM



Advertisments