Reaz,
 
This error simply means that the XML document you're receiving is not 
well-formed (the & character needs to be escaped as &). Nothing to do 
except fix the document.
 
Radu


________________________________

        From: Ahmed, Reaz [mailto:[EMAIL PROTECTED] 
        Sent: Wednesday, August 13, 2008 8:17 AM
        To: 'dev@xmlbeans.apache.org'
        Subject: RE: XMLBeans error!!!
        
        
        Guys, 
         
        Please help me with the following error, I am having this issue in 
production. 
         
         If the xml messages has some "&" on the message, while using XMLBeans 
you get the following error:
         
        org.apache.xmlbeans.XmlException: error: Unexpected character 
encountered (lex state 3): ' '
                at 
org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)
                at org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:712)
                at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:696)
                at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:683)
                at 
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:208)
                at 
noNamespace.STPMessagesDocument$Factory.parse(STPMessagesDocument.java:119)
                at 
com.tdsecurities.fxfunding.app.ttdealer.TtOrderReconManager.collectStpMessages(TtOrderReconManager.java:261)
                at 
com.tdsecurities.fxfunding.app.ttdealer.TtOrderReconManager.run(TtOrderReconManager.java:99)
                at java.lang.Thread.run(Thread.java:595)
        Caused by: org.xml.sax.SAXParseException: Unexpected character 
encountered (lex state 3): ' '
                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:3454) 
        
         
        According to the apache website  this problem is solved,  but I can't 
figure out what the solution was, could you please help. I have a production 
issue on this.
        
         Many  Thanks.
        

        Reaz. 
        TD-Securties
        +1 416-983-0166
        [EMAIL PROTECTED]
        
        ********************
        NOTICE OF CONFIDENTIALITY
        This communication including any information transmitted with it is 
        intended only for the use of the addressees and is confidential. 
        If you are not an intended recipient or responsible for delivering 
        the message to an intended recipient, any review, disclosure, 
        conversion to hard copy, dissemination, reproduction or other use 
        of any part of this communication is strictly prohibited, as is the 
        taking or omitting of any action in reliance upon this communication. 
        If you receive this communication in error or without authorization 
        please notify us immediately by return e-mail or otherwise and 
        permanently delete the entire communication from any computer, 
        disk drive, or other storage medium.
        
        If the above disclaimer is not properly readable, it can be found at 
        www.td.com/legal
                                                                   
        AVERTISSEMENT DE CONFIDENTIALITE                   
        Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement 
        aux destinataires susmentionnés,  est confidentiel.  Si vous 
        n'êtes pas le destinataire prévu ou un agent responsable de la 
        livraison de ce courriel, tout examen, divulgation, copie, impression, 
        reproduction, distribution, ou autre utilisation d'une partie de ce 
        courriel est strictement interdit de même que toute intervention ou 
        abstraction à cet égard.  Si vous avez reçu ce message par erreur ou 
        sans autorisation, veuillez en aviser immédiatement l'expéditeur par 
        retour de courriel ou par un autre moyen et supprimer immédiatement 
        cette communication entière de tout système électronique.
        
        Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous 
        pouvez le consulter à www.td.com/francais/legale

Reply via email to