Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XmlAdapter and XMLSchemas
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Divers
Thread ID:
00960940
Message ID:
00961517
Vues:
11
>So, do you think that this a unsolved BUG?
I cannot say. I am still getting format errors with XMLAdatper.Load(). The xml's I am working with are built for Java-Apache DOM services. I am working through the "Node" tree offered by "MSXML2.DOMDocument.3.0". It works! It will parse the XML without errors. But Adapter will not. The documentation even suggested passing a "MSXML2.DOMDocument.3.0" document to XMLAdapter. I tried and it failed to.

As far as relative addressing -- my project will bumb that issue in the next few days - so all I can say is stay tuned (or watch out!:).

>About the issues with JSEE, sorry not working with that yet.
>
>>I remember visiting a "relative" path issue with Sun's DOMUtility. It may be assuming a "web" app implementation, and since the folder in the path does not seem like a "server" folder, it is doing what it thinks it should and storing a full "absolute" path?:-)
>
>>I have had issues with XMLAdapter (parse errors) with "JSEE" xml. The XML2.DOMDocument, however, works well. If you chance across a reason XMLAdapter might be hiccupping with JSEE (java/Sun) XML files, I would appreciate it!
>
>>I'm trying to convert Visual FoxPro cursor to XML using external schema, It's really easy using CursorToXML(), but I'm playing arround XMLAdapter to use the properties included.
>>
>>I've seen that when I specify the XMLSchema using the XMLSchemaLocation property the ToXML method include the full path to the resultant XML File, is it correct?
>>
>>Here's the code to reproduce it:
>>
>>
>
>>
>>CREATE CURSOR test (iid int, cClave c(10), dFecha d)
>>
>>INSERT INTO test(iid, cClave, dFecha) ;
>>  VALUES (1,"001",DATE())
>>
>>oXML = CREATEOBJECT("XmlAdapter")
>>oXML.AddTableSchema("test")
>>oXML.XMLSchemaLocation = "test.xsd"
>>oXML.ToXML("test.xml",,.T.)
>>
>>
>
>>
>>The XML file has the following:
>>
>>
>
>><?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
>><VFPDataSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
&gt;&gt;xsi:noNamespaceSchemaLocation="C:\Documents and Settings\Epalma\Mis documentos\Visual FoxPro Projects\test.xsd">
>>	<test>
>>		<iid>1</iid>
>>		<cclave>001</cclave>
>>		<dfecha>2004-11-12</dfecha>
>>	</test>
>></VFPDataSet>
>>
>>
>
>>
>>Did I miss something? This shouldn't include the full path, this doesn't happend when specify de XMLSchema in the ToXML method:
>>
>>
>
>>oXML.ToXML("test.xml","test.xsd",.T.)
>>
>
>>
>>Thanks in advance
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform