Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with XML schema
Message
From
21/03/2004 21:21:24
 
General information
Forum:
ASP.NET
Category:
XML
Miscellaneous
Thread ID:
00888315
Message ID:
00888372
Views:
9
>Michael, I have been using the XMLAdapter for this:
>
> loXMLAdapter = CREATEOBJECT("XMLAdapter")
> loXMLAdapter.AddTableSchema(ALIAS())
> ll_IncludeBefore = .T.
> ll_ChangesOnly = .T.
> ll_IsFile = .F.
> lc_SchemaLocation = ""
> loXMLAdapter.UTF8Encoded = .t.
> loXMLAdapter.IsDiffgram = .f.
> loXMLAdapter.ToXML("lc_XML", lc_SchemaLocation, ll_IsFile, ll_IncludeBefore, ll_ChangesOnly)
>
>The lc_XML thus created has the schema embedded at the start of the XML.

Well, even with this approach, the Character Binary field is still returned as a string. So, it invalidates the proper format. In order to avoid keeping a copy of each table schema side by side to each imported table, I guess I could include a hook for the only table I have that type of field in order to correct it manually at run time. So, I wouldn't have to include the schema tables and would generate them on the fly at run time in order to XMLTOCURSOR() to work properly.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform