Re: [bdbxml] XmlValue/XmlDocument problems
George Feinberg <[email protected]> Wed, 17 Aug 2005 12:37:07 -0400
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
> >>> I am having a problem using these classes. I get an XmlValue from >>> an XmlResults >>> object, isNode returns true so I call asDocument and get the >>> XmlDocument object >>> (asString returns the expected xml). When I call getContentAsString >>> () on the >>> XmlDocument it returns an empty string. >>> >> >> I suspect you are using DeadValues for query results. >> You need to use LiveValues if you want a useful XmlDocument object. >> > > This works if the result of the query is a document 'as is' from > the container. > When the result document is created by the query with bits of > information taken > from many of the container's documents, the same problem is > encountered. We'll look into how to reasonably make the constructed documents more useful. It may not be an easy thing to do. > > Is there any way to get the XmlDocument object to not add <?xml > version="1.0" > encoding="UTF-8"?> ?? For documents stored in BDB XML, the XML declaration should only be output if it was there on input. To which documents are you referring? George ------------------------------------------ To remove yourself from this list, send an email to [email protected]