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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. Loading large XML file ( 222 MB) in HTML using java script problem

Loading large XML file ( 222 MB) in HTML using java script problem

Scheduled Pinned Locked Moved Web Development
javajavascripthtmltoolsxml
4 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.
  • S Offline
    S Offline
    sma123
    wrote on last edited by
    #1

    Hi All, I am trying to load large XML file(222 MB) using javascript for HTML format. It is taking a lot of time. Can anyone suggest me to make it more efficient? Any sample is more appreciated. I am using something like below, var xmlDoc=null; if (window.ActiveXObject) //IE 8,9 { xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); } else if (document.implementation.createDocument) { xmlDoc=document.implementation.createDocument ("","",null); } else { alert('Your browser cannot handle this script'); } if (xmlDoc!=null) { xmlDoc.async=false; xmlDoc.load('Load.xml'); // Large xml file }

    L 1 Reply Last reply
    0
    • S sma123

      Hi All, I am trying to load large XML file(222 MB) using javascript for HTML format. It is taking a lot of time. Can anyone suggest me to make it more efficient? Any sample is more appreciated. I am using something like below, var xmlDoc=null; if (window.ActiveXObject) //IE 8,9 { xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); } else if (document.implementation.createDocument) { xmlDoc=document.implementation.createDocument ("","",null); } else { alert('Your browser cannot handle this script'); } if (xmlDoc!=null) { xmlDoc.async=false; xmlDoc.load('Load.xml'); // Large xml file }

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Firstly, don't duplication your question over many forums. Second, considering the size of the file, and what you are trying to do with the thing, why are you surprised it is taking a rather long period of time.

      S 1 Reply Last reply
      0
      • L Lost User

        Firstly, don't duplication your question over many forums. Second, considering the size of the file, and what you are trying to do with the thing, why are you surprised it is taking a rather long period of time.

        S Offline
        S Offline
        sma123
        wrote on last edited by
        #3

        Hello Richard, Sorry to bother you again. I am new to web technology so I have not much idea on this. Please provide me the best technique to achieve this. Regards, SMA

        L 1 Reply Last reply
        0
        • S sma123

          Hello Richard, Sorry to bother you again. I am new to web technology so I have not much idea on this. Please provide me the best technique to achieve this. Regards, SMA

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I will not give you source code. But I will give you some links to read which may help ... https://jacobcarpenter.wordpress.com/2010/01/07/reading-large-xml-files/[^] http://office.microsoft.com/en-gb/sharepoint-server-help/convert-an-xml-file-to-a-web-page-HA010215482.aspx[^] and this is a conversation that you may find interesting ... http://www.dreamincode.net/forums/topic/147336-fast-way-to-read-a-large-xml-file/[^] Other solutions could include splitting the XML file into smaller files such as ... Split large XML files into small files[^] Trust you may find some comfort from the above.

          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