Results 1 to 2 of 2

Thread: XmlDocument file Loading take too much time

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Posts
    29

    Question XmlDocument file Loading take too much time

    Hi, i try to load an xml file using XmlDocument.Load() like the codes shown below:

    XmlDocument document = new XmlDocument();
    document.Load(this._svgPath);

    where this._svgPath is the path for the xml file.

    My problem is, the loading time is about 40 seconds which i consider too long. Is there any way that i can make it load faster?

    I am quite new in XML. Any advice is highly welcomed. Thank you

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Posts
    29

    Re: XmlDocument file Loading take too much time

    Sorry for not providing proper information. Yes, i just want to load the xml file and read its contents. Because i am using XmlNodeReader(document).Read() to read the elements inside the xml file, so i use XmlDocument.Load() to create an Xml document before passing it as parameter in XmlNodeReader.

    So, which method do u think is better way to read xml file contents? XmlNodeReader() or XmlTextReader() ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width