[xml] How can I copy a xmlNodePtr variable?
- From: Wei Chen <chenwei624 yahoo com>
- To: xml gnome org
- Subject: [xml] How can I copy a xmlNodePtr variable?
- Date: Sun, 21 Dec 2003 19:22:54 +0100 (CET)
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]