Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating XML file
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
Creating XML file
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01356390
Message ID:
01356390
Vues:
66
Hi,

I am looking for suggestions to do the following.

I need to create an XML file that will have two-fold purpose:

1. I can create a cursor of a groups (following example will illustrate)
2. Or create a cursor of all entries in one group

Here is a sample XML
<MYLIST>
   <GROUP>
         <NAME>Group1 Name</NAME>
         <EMAIL>myemail1@domain.com</EMAIL>
        <EMAIL>myemail2@domain.com</EMAIL>
   </GROUP>
  <GROUP>
         <NAME>Group 2 Name</NAME>
         <EMAIL>myemail3@domain.com</EMAIL>
        <EMAIL>myemail4@domain.com</EMAIL>
 </GROUP>
</MYLIST>
I can get names of groups using the following syntax:
XMLTOCURSOR( "MYFILE.XML", "MYCURSOR", 512  )
But how do I get list of EMAIL tags for just one group, say "Group 1 Name"?

Is the above structure of the XML good and/or how can it be improved?

Thank you in advance for any help.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform