I've tried with a few input documents and I even get the problem with this very simple xml. I'm not using schema - is that a problem?
<?xml version="1.0" encoding="UTF-8"?> <test xmlns="http://www.example.com/"> <something/> </test> Thanks, Andy. -----Original Message----- From: Caroline Maynard [mailto:[EMAIL PROTECTED] Sent: 27 April 2007 16:23 To: tuscany-dev@ws.apache.org Subject: Re: [C++] XMLDocument has no root object On 27/04/07, Andy Grove <[EMAIL PROTECTED]> wrote: > > > Hi Caroline, > > If I call xmlHelper->save(doc) I just get the prolog e.g. "<?xml > version="1.0" encoding="UTF-8"?>" and no content. I've tried with a > couple of different input documents and I have also confirmed that I > do get an exception if the input document doesn't exist. I've had this happen too, and it was because the document wasn't valid against the schema. The symptoms were as you describe. In my case ( http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg10937.html) the circumstances were a bit different, but probably something is amiss with your input and libxml2 isn't kind enough to tell you. Can you try pushing them through an XML validator? -- Caroline --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]