Sign In/My Account | View Cart  
advertisement

Article:
 Using Embedded XML Databases to Process Large Documents
Subject: MEMORY USAGE
Date: 2003-11-06 09:11:21
From: Julian Turner

My programming skills are limited to JScript and DHTML.


I have been using some 3MB plus XML files in a project of mine, which have had memory problems.


This article is of interest, and I wonder if there are any such databases which can be used as an ActiveX control in JScript?


My alternative solution was to write my own JScript slimline parser, which only uses memory as needed. Essentially I still need to load the 3MB text file into memory (which is a big shortcoming), but instead of parsing the file, my firstChild etc methods, search the text string, and return a node which simply stores the start and end points of the node in the XML text string, and methods such as insertBefore splice the main XML text string. Since my project does not demand that I have a large number of nodes in existence at any one time, or major node processing, memory usage is confined to the string, and those light nodes which I do call up.




Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Newest First
  • MEMORY USAGE
    2003-11-10 15:31:12 Mark Wilcox [Reply]

    Knowing Javascript and DHTML is quite a task, if perhaps not always the best solution to all problems.


    Unfortunately, XML databases and specifically embedded XML are so new, that I don't know of any out there that can be embedded this way.


    I think you're probably better off with something on the server that you can reference via an URL or XPath query embedded in a post response.


Sponsored By: