logo       

Re: [XmlBeans V2] [BUG ?] Unexpected element: CDATA: msg#00142

text.xml.xmlbeans.user

Subject: Re: [XmlBeans V2] [BUG ?] Unexpected element: CDATA

The parse method can take either a File or String (and other datatypes). The second one fails because the String passed as an argument is not serialized xml.

Tom Gordon

Stéphane Rault wrote:

I'm down on my knee and ask for pardon !!

this works :
CountersDocument cd = CountersDocument.Factory.parse(new File("c:\\temp\\counter.xml"));

and this fails :
CountersDocument cd = CountersDocument.Factory.parse("c:\\temp\\counter.xml");

I didn't read the javadoc of XmlObject.Factory...

Thank you for taking time on my stupidities...

Stéphane_head_down ;-)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: user-help@xxxxxxxxxxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise