XmlBeans Exception: Unexpected element: CDATA

Discussion in 'Java' started by greenbird, Mar 15, 2010.

  1. greenbird

    greenbird

    Joined:
    Mar 15, 2010
    Messages:
    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 org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3471)
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270)
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)
    at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)


    Caused by:
    org.xml.sax.SAXParseException: Unexpected element: CDATA
    at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
    at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
    at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3439)
     
    greenbird, Mar 15, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Davison
    Replies:
    1
    Views:
    584
    Hal Rosser
    Jul 7, 2004
  2. thelinuxguy1997@yahoo.com

    XMLBeans: Exception when parsing a valid XML

    thelinuxguy1997@yahoo.com, Apr 22, 2006, in forum: Java
    Replies:
    2
    Views:
    13,227
  3. X. Lee
    Replies:
    2
    Views:
    7,296
    Peter Flynn
    Nov 1, 2004
  4. troppfigo@excite.it
    Replies:
    3
    Views:
    756
    Joe Kesselman
    Mar 6, 2006
  5. Vincent Lefevre
    Replies:
    7
    Views:
    3,242
    Andy Dingley
    Jun 22, 2006
Loading...

Share This Page