Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to produce hierarchical xml with complex types
Message
 
 
À
19/01/2007 07:38:14
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Divers
Thread ID:
01186889
Message ID:
01187419
Vues:
28
If XmlAdapter cannot do it, you can use XMLDOM or build XML using VFP string functions.

>I need to produce a XML from a set of VFP tables.
>The tables are related and i want to respect nesting.
>I can do this.
>
>But my problem is that i need the nesting to look like this (I'm nesting the «code» table into the «table1» table):
>
>
>
>	<table1>
>		<name>his name</name>
>		<code>
>			<codetype>t1</codetype>
>			<codenumber>1</codenumber>
>		</code>
>		<address>his address</address>
>	</table1>
>	<table1>
>		<name>his name2</name>
>		<code>
>			<codetype>t2</codetype>
>			<codenumber>2</codenumber>
>		</code>
>		<address>his address2</address>
>	</table1>
>
>
>instead of this:
>
>
>	<table1>
>		<name>his name</name>
>		<address>his address</address>
>		<code>
>			<codetype>t1</codetype>
>			<codenumber>1</codenumber>
>		</code>
>	</table1>
>	<table1>
>		<name>his name2</name>
>		<address>his address2</address>
>		<code>
>			<codetype>t2</codetype>
>			<codenumber>2</codenumber>
>		</code>
>	</table1>
>
>
>VFP always puts the nested table in the end of all the fields of the parent table. But i need to put the nested table as if it were one of the fields of the parent table.
>
>Can someone help me ?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform