Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using ObjectToXML in wwXML
Message
 
 
À
17/01/2004 11:25:36
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Divers
Thread ID:
00867508
Message ID:
00867808
Vues:
24
Susan,

I basically ended up rewriting the ObjectToXML parts of wwXML to make it do what I needed. I added stuff to use SCATTER NAME based hierarchical objects to rendered into XML and take the result XML and render it back into another hierarchical object. wwXML seems to have been designed to write <-> read its own XML moreso than interacting with external XML documents.

And XML is persnicketty about things like tag and attribute names, as well as case so you will have to match it exactly.

>There's an example in wwXML-ObjectToXML showing how to create an object with an array property to store the lines but the example is only for the one invoice. I could work out how to apply this but couldn't see how to make it work for the file to contain more than one invoice.
>
>It's now been suggested to me that I could create one file for each invoice and the concatenate them together at the end.
>
>This would be fine but unfortunately I've just had another spanner thrown into the works.
>
>The reason I'm doing this is to provide another company with details of our customers. They have provided me with a DTD showing the details they require but they have just informed me that the attribute and element names must match their's exactly. The sample XML file they have provided contains the same element name within the hierarchy eg a customer could have up to 3 different addresses, the element name being 'addresstype' but with the attribute 'type' set to different values.
>
>It doesn't look as though the routines I've been hoping to use can accomodate this so I think I'll have to reosrt to coding it longhand using text/endtext.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform