Navigating through a very large xml file in web page

I have a very large XML file that needs to be displayed in my web page, may be as a tree structure. Visitors should be able to go to any level depth nodes and access the children elements or text element of those nodes.

I thought about using DOM parser with Java but dropped that idea as DOM would be stored in memory and hence its space consuming. Neither SAX works for me as every time there is a click on any of the nodes, my SAX parser parses the whole document for the node and its time consuming.

Could anyone please tell me the best technology and best parser to be used for very large XML files? is there any way with ASP etc.?

When you say very large, can you please give us an idea of how large. For example, how many characters per document, and in how many elements/nodes?