P
Paulo
Tried:
exportapedido ExpPedido = new exportapedido(); //Calling WebService, already
added web Reference on project
XmlDocument docXML = new XmlDocument();
try
{
XmlNode node = ExpPedido.ExportaPedido(719); //WebService returns XMLNode
docXML.AppendChild(node); //--> error: The node to be inserted is from a
different document context
GridView1.DataSource = node; //-->test to show on grid and shows OK!
GridView.DataBind();
docXML.Save("teste.xml"); //I'm trying to save xml
}
catch (Exception err)
{
Response.Write("<script> alert('" + err.Message.Replace("'", "") +
"')</script>");
}
how to fix error: "The node to be inserted is from a different document
context"
VWD C# Express 2008
Many Thanks
exportapedido ExpPedido = new exportapedido(); //Calling WebService, already
added web Reference on project
XmlDocument docXML = new XmlDocument();
try
{
XmlNode node = ExpPedido.ExportaPedido(719); //WebService returns XMLNode
docXML.AppendChild(node); //--> error: The node to be inserted is from a
different document context
GridView1.DataSource = node; //-->test to show on grid and shows OK!
GridView.DataBind();
docXML.Save("teste.xml"); //I'm trying to save xml
}
catch (Exception err)
{
Response.Write("<script> alert('" + err.Message.Replace("'", "") +
"')</script>");
}
how to fix error: "The node to be inserted is from a different document
context"
VWD C# Express 2008
Many Thanks