[xml] How can I copy a xmlNodePtr variable?



My program looks as follow:

...
struct _myXmlStruct
{
  int nr;
  xmlNodePtr myNode;
};
_myXmlStruct myXmlStruct[128];

...
...
fi(xmlNodePtr node)
{
...
...
int i;

for(i=0; i<128; i++)
  myXmlStruct[i].myNode = node;

...
...

}

In this case, just the logical adress of node is copy
to myXmlStruct[i].myNode but not the physical
contents. How can I copy the physical content of node
to myXmlStruct[i].myNode ?

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]