Re: [bdbxml] XmlValue/XmlDocument problems
Jim Endicott <[email protected]> Wed, 17 Aug 2005 19:29:36 +0000 (UTC)
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
I think I have a fundamental disconnect on how to deal with the results from a query. What I expected was that if I did a query like /foo I would get a collection of XmlValue objects in the XmlResults object, 1 for each <foo>...</foo> element that was found. When I check the type of the value with (isNode == true) that would mean that I would want to access the value as a document (asDocument()). I suspect that what is meant by ‘document’ in this context is the XML file that was added to the container as opposed to a well formed XML Document and therefore asDocument means that you want to access not the element <foo> but the xml file that it was found in?? In that case if I want to access the XmlValue as an xml fragment when that is what it is and as an atomic String, Boolean, etc when it isn’t, what is the right way to use the API? ------------------------------------------ To remove yourself from this list, send an email to [email protected]