Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Build Hierarchic XML Document ?
Message
From
31/05/2002 17:21:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00663174
Message ID:
00663682
Views:
15
>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?

Steve,
Pre C# and ADO.Net I was using ADO for that. You can create an hierarchical rs with MSDataShape and rs.Save(lcFile, AsxmlConstant) (asXMLConstant probably was 1).
For creating with MSdatashape search for HierarchicalFlexGrid. In sample code after oRecordset.open, oRecordset.save().
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform