[bdbxml] Re: reshaping
George Feinberg <[email protected]>
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
On Jul 18, 2005, at 3:50 PM, Green, Spence wrote:
> I'm having trouble reshaping the results of a query. The flwor
> expression works well and when I do this:
>
> return $i
>
> where $i was bound to the root of the document with a for
> expression, I get proper XML back (the whole document). When I do
> this:
>
> return <b> {$i} </b>
>
> I still get results back from the query, but when I do getContent()
> on each XmlDocument, I get null in the resulting std::string. I
> tried creating an XmlValue from the XmlDocument and calling the
> asString() method, but I received the same result.
In the first case, the XmlValue object you get back in your result set
represents the actual XmlDocument in the container.
In the second case, what you're really getting back is an XML string,
so trying to treat it as an XmlDocument does not work.
I believe that someone suggested just using XmlValue.asString()
on the results directly. Leave XmlDocument out of the picture,
altogether,
(even in the first case), and you should be OK.
Regards,
George
>
>
>
> Spence
>
------------------------------------------
To remove yourself from this list, send an
email to [email protected]