Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Two tables in one XML file...
Message
De
21/07/2001 05:11:07
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00532821
Message ID:
00533466
Vues:
12
This message has been marked as a message which has helped to the initial question of the thread.
>So I can use the method getElementsByTagName() of XMLDom object to get the references of the node?
>

>>Jean,
>>getElementsByTagName(TagName) ?
>>Cetin

AFAIK yes supported on version 5.0 and up.
Here is a code portion using it :
for(i=0;i<(xmldso.getElementsByTagName("CategoryPK").length);i++)
 {
  if(xmldso.getElementsByTagName("CategoryPK")(i).text==intX)
    xmldso.getElementsByTagName("CategoryPK")(i).parentNode.selectSingleNode("Task").appendChild(objTmp.childNodes(0));
 }
}
function del(sText)
{
intX = Spliter(sText,1);
for(i=0;i<(xmldso.getElementsByTagName("TaskPK").length);i++)
 {
  if(xmldso.getElementsByTagName("TaskPK")(i).text==intX)
   xmldso.getElementsByTagName("TaskPK")(i).parentNode.parentNode.removeChild(xmldso.getElementsByTagName("TaskPK")(i).parentNode);
 }
}
This code is from one of samples on MS site. It was a tree Task editor.
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform