Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Build Hierarchic XML Document ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Build Hierarchic XML Document ?
Divers
Thread ID:
00663174
Message ID:
00663174
Vues:
40
I have two tables in a DBC with a simple single-column PK-FK relationship. I was looking at the VFP7 CursorToXML() function and don't see how I can create a hierarchic XML document from these two tables.
table1
	cKey
	gold
	silver
	copper

table2
	cKey	cValue
	gold	spoon
	gold	fork
	silver	spoon
	silver	spoon
	silver	spoon
	copper	fork
	copper	knife


How can/should I make
	{xml}
		{row cKey="gold"}
			{cValue="spoon" /}
			{cValue="fork" /}
		{/row}
		{row cKey="silver"}
			{cValue="spoon" /}
			{cValue="spoon" /}
			{cValue="spoon" /}
		{/row}
		{row cKey="copper"}
			{cValue="fork" /}
			{cValue="knife" /}
		{/row}
	{/xml}
Help?

Thanks.

By the way, how do you guys get XML to display on the UT?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform