Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Little Help pls

Little Help pls

Scheduled Pinned Locked Moved C#
helpxmltutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alphanorm
    wrote on last edited by
    #1

    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

    B 1 Reply Last reply
    0
    • A 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

      B Offline
      B Offline
      Brian Nottingham
      wrote on last edited by
      #2

      Shouldn't that tag be

      ? Sometimes it helps when you pass valid XML to the LoadXML function : ).

      A 1 Reply Last reply
      0
      • B Brian Nottingham

        Shouldn't that tag be

        ? Sometimes it helps when you pass valid XML to the LoadXML function : ).

        A Offline
        A Offline
        alphanorm
        wrote on last edited by
        #3

        OH SNAP!! Thanx fer the fresh set of eyes Brian. I think I need to sleep now. :) alphanorm

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups