V
Vuong
hi all
here my situation :
public class A
{
XmlDocument m_xmlDocument=null;
public A()
{
this.createEmptyXMLDocument();
// create an empty XMLdocument with XMLDeclaration and
// root Element into x_xmlDocument variable
}
// got a button ----
private void btn_new_click(object sender,System.EvenArgs e)
{
// add new employee
this.addEmployee(this.m_xmlDocument,strFirstname);
}
private addEmployee(XMLDocument doc,string firstname)
{
....... Do something to add new child into "doc" ;
}
}
What i got here is that, not just "doc" is added new child, "m_xmlDocument"
also is added new child , just the same as doc.
As far as i know, there's no way that can happen ....
Thanks,
here my situation :
public class A
{
XmlDocument m_xmlDocument=null;
public A()
{
this.createEmptyXMLDocument();
// create an empty XMLdocument with XMLDeclaration and
// root Element into x_xmlDocument variable
}
// got a button ----
private void btn_new_click(object sender,System.EvenArgs e)
{
// add new employee
this.addEmployee(this.m_xmlDocument,strFirstname);
}
private addEmployee(XMLDocument doc,string firstname)
{
....... Do something to add new child into "doc" ;
}
}
What i got here is that, not just "doc" is added new child, "m_xmlDocument"
also is added new child , just the same as doc.
As far as i know, there's no way that can happen ....
Thanks,