Beautiful, thanks Sergey! :o)
Another question you may know the answer to: is there anyway to use a schema in memory instead of on disk with the xmladapter? I'd like to keep from storing the xsd on disk. I have it in a prg and use
TEXT TO cschema ...
ENDTEXT
STRTOFILE(cschema)...
>Tracy,
>
>See
Re: Is there a way to convert XSD to a table structure? Thread #
1025314 Message #
1025538>
>>I have an xsd file and I would like to create empty cursors from it. The cursors are described in the xsd file. I also have a sample xml file which I used the xmladapter to create the cursors from and then populated the cursors with my data which works. I then created a function to create those cursors in the future on the fly (not from the xsd file but from the 1st cursors I created from the xml file), but I would rather use the xmladapter to just read the xsd file on disk and create the cursors on the fly based on the structures in the xsd. It appears tocursor() only works if the tables have been created using loadxml() from an xml file.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"