Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to produce hierarchical xml with complex types
Message
From
19/01/2007 07:38:14
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
How to produce hierarchical xml with complex types
Miscellaneous
Thread ID:
01186889
Message ID:
01186889
Views:
64
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 ?
Next
Reply
Map
View

Click here to load this message in the networking platform