>
>Define Class BlaBlaBla...
>Procedure GetOrder
>LParameters m.IdOrder
>Select * From Orders Where IdOrder = m.IdOrder Into Cursor c_Order
>CursorToXml("c_Order","c_OrderXML")
>Select * From Products Where IdOrder = m.IdOrder Into Cursor c_Products
>CursorToXml("c_Products","c_ProductsXML")
>Return ????????
>
>
>I don't know how do it! :(
>
There are several ways to do it; you can concatenate the two strings and parse them out on the other side, or rather than using a flat XML cursor, you can construct a hierarchical document with the DOM - it's slower, but it can reflect the entirety of a schema in a string that can be parsed cleanly.
>And, there are one more thing: If "m.IdOrder" didn't find, I have to return a error message! :(
>
And why can't you build an XML document that contains the error message?