Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing the cXMLName parameter
Message
From
13/10/2004 14:53:12
 
 
To
13/10/2004 00:44:29
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00950933
Message ID:
00951168
Views:
15
>Hi all,
>
>I am using the same xsd structure for several different cursors with different names. The only way I have been able to get the toXML() method to work is to ReleaseXML and then AddTableSchema before calling toXML(). This causes the generated xml to have the cursor name that is different then the xsd file. In reading the docs, there is a third parameter, cXMLName, that can be used to force a different table name then the cursor. I tried this using strconv() to convert to Unicode “STRCONV("cr_test",1,1033)”. Now when the xml is generated, I get ????? where the table name should be. What can I do different other then store the data structure with the xml?
>
>Thanks.

Hi James,

You should use different second parameter for STRCONV, 1 does not convert string to Unicode.

If you want ToXML() method to read data from a different cursor with the same schema, you don't need to release the schema, just change XMLTable.Alias to the right alias.

Thanks,
Aleksey.
Previous
Reply
Map
View

Click here to load this message in the networking platform