Little Help pls
-
I can't seem to think straight at the moment, so could anyone tell me why I am getting this error or how to get more information on it? This is the error: An unhandled exception of type 'System.Xml.XmlException' occurred in system.xml.dll Additional information: System error. This is the function: private XmlDocument xd; private XmlDocument tempdoc; private void btnNewXML_Click(object sender, System.EventArgs e) { // Is a FLAPP directory selected? if (CheckFLAPP(tboxFLAPP.Text) == true) { //create default xml document tempdoc = new XmlDocument(); //load in generic document structure tempdoc.LoadXml("" + "" + "" + "" + "
" + "" + ""); xd = new XmlDocument(); **ERROR OCCURS ON THIS LINE** xd = tempdoc; if(ValidateXmlDoc(xd)) { DisplayInitXML(xd); } else { MessageBox.Show("The new xml document produced was invalid. Please contact ... for help."); } } else { MessageBox.Show("You have not selected a FLAPP directory!"); } } Any help is appreciated. alphanorm
-
I can't seem to think straight at the moment, so could anyone tell me why I am getting this error or how to get more information on it? This is the error: An unhandled exception of type 'System.Xml.XmlException' occurred in system.xml.dll Additional information: System error. This is the function: private XmlDocument xd; private XmlDocument tempdoc; private void btnNewXML_Click(object sender, System.EventArgs e) { // Is a FLAPP directory selected? if (CheckFLAPP(tboxFLAPP.Text) == true) { //create default xml document tempdoc = new XmlDocument(); //load in generic document structure tempdoc.LoadXml("" + "" + "" + "" + "
" + "" + ""); xd = new XmlDocument(); **ERROR OCCURS ON THIS LINE** xd = tempdoc; if(ValidateXmlDoc(xd)) { DisplayInitXML(xd); } else { MessageBox.Show("The new xml document produced was invalid. Please contact ... for help."); } } else { MessageBox.Show("You have not selected a FLAPP directory!"); } } Any help is appreciated. alphanorm
Shouldn't that tag be
? Sometimes it helps when you pass valid XML to the LoadXML function : ).
-
Shouldn't that tag be
? Sometimes it helps when you pass valid XML to the LoadXML function : ).