Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XMLAdapter can't parse but XMLTOCursor can
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01008651
Message ID:
01009011
Vues:
20
David,

Your explanation is clear and logical; you are good explaining things, like a professor. :)

I believe that the strictness is hurting the tool; perhaps we need an additional flag to tell it to relax and try its best:
x=CREATEOBJECT("xmladapter")
x.RelaxAndTryYourBest = .T.  && LOL
x. LoadXML(lcXMLDocWithLittleSchemaCaseProblems)
… or a new “AnalizeSchema” method that can tell us if there are schema validation issues instead of the “schema too complex” message.

Both Internet Explorer and the XMLDOM are able to load that XML doc without a problem, as the Latin American saying goes “why do we need to be more papists that the Pope?”

Thanks again,

>David,
>Perfect, it worked, thanks for clarifying Aleksey's answer.
>Great questions for Aleksei too, I'm really curious about those.
>
>Aleksey, please disregard my second message.
>
>>Aleksey,
>>
>>>XDR schema doesn't define datetime data type, it defines dateTime data type (case is important).
>>
>>Good info for Maximo, so he can just:
x=CREATEOBJECT("xmladapter")
>>? x.LoadXML(STRTRAN(FILETOSTR("zambrano.xml"),"datetime","dateTime"))
>>x.tables(1).tocursor()
So this is an example where something incorrect in the Schema definition results in the error message: "XML Schema is too complex."
>>
>>In what other circumstances does that error message occur? Is it mostly due to something wrong with the schema, or are there schemas that really are too complex in structure (and not just containing an error). In other words, is this error message one that catches all problems in interpreting a schema, whether or not the schema is really valid?
>>
>>Thanks for any clarification you can give...

...Y soy feliz, bien feliz, asi lo grito;
Mira, que el mundo sepa, que se sepa:
Soy feliz....                       

...And I'm happy, quite happy, so do I yell it;
Look, so the world knows it, so be known:
I'm happy...
 

Ismael Rivera "Oye cosita linda"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform