- // lecture du fichier xml
- xml.Initialize("./test.xml");
-
- // recherche du tag test
- Tag = xml.Search("/test");
- // récupération de premier tag enfant de test
- Tag = xml.GetChild(Tag);
- while(Tag != NULL) // tant qu'il y a un tag enfant ...
- {
- x = xml.GetChild(Tag); // get x
- y = xml.NextChild(x); // get y
- text = xml.NextChild(y); // get text
- r = xml.NextChild(text);
- g = xml.NextChild(r);
- b = xml.NextChild(g);
-
- //AfxMessageBox(text->pcValue);
- WriteWindow(this->GetDC()->m_hDC,
- atoi(x->pcValue),
- atoi(y->pcValue),
- text->pcValue, RGB(atoi(r->pcValue),atoi(g->pcValue),atoi(b->pcValue)));
- Tag = xml.NextChild(Tag);
- }
- xml.WriteTo("./test.xml");
// lecture du fichier xml
xml.Initialize("./test.xml");
// recherche du tag test
Tag = xml.Search("/test");
// récupération de premier tag enfant de test
Tag = xml.GetChild(Tag);
while(Tag != NULL) // tant qu'il y a un tag enfant ...
{
x = xml.GetChild(Tag); // get x
y = xml.NextChild(x); // get y
text = xml.NextChild(y); // get text
r = xml.NextChild(text);
g = xml.NextChild(r);
b = xml.NextChild(g);
//AfxMessageBox(text->pcValue);
WriteWindow(this->GetDC()->m_hDC,
atoi(x->pcValue),
atoi(y->pcValue),
text->pcValue, RGB(atoi(r->pcValue),atoi(g->pcValue),atoi(b->pcValue)));
Tag = xml.NextChild(Tag);
}
xml.WriteTo("./test.xml");