Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to use Xml
Message
De
16/09/2010 04:40:31
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Trying to use Xml
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01481418
Message ID:
01481418
Vues:
102
Hi all, I'm at my very first approach with Xml and I'm not sure i really need to use it :)

I have this problem
I neeed to record the setup of an object which contains other objects having their own properties.
I have a main table whiche refers to the setting of specific clients CFGT (idt c(10),prop M)

inside the Prop Field I want to store all the settings of the client
It is simple if the client contains a single object but what if it is populated by many objects each of them having its own properties ?

I thought about a XML but I have problem with the two dimensions

here is a short example of what I should do
<MainObject>
	<BackColor> </BackColor>  
	<NumberOfControls></NumberOfControls>  
	<Mode></Mode>  

	<Control>
		<Name>control1</Name>
		<service> xxx </service>
		<service> yyy </service>
		<service> zzz </service>
		<position> 1 </position>
		<mode> </mode>
	</Control>
	<Control>
		<Name>control2</Name>
		<service> xxx </service>
		<service> yyy </service>
		<service> zzz </service>
		<position> 2 </position>
		<mode> </mode>
	</Control>
	<Control>
		<Name>control3</Name>
		<service> kkk </service>
		<service> jjj </service>
		<service> hhh </service>
		<position> 1 </position>
		<mode> </mode>
	</Control>

		
</MainObject>	
what i want to have back are two cursors one which the MainObjectproperties and the second with the rows of the various controls
is it possible ? Or should I use two different structures ?

thanks
Alessio
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform