L
Luc Mercier
Hi folks,
I'm using dom4j to process xml, and mostly do some stuff like that:
Document xmldoc = ...
for (Object o : xml.selectNodes("an xpath expression")) {
Node n = (Node) o;
// do some stuff
}
The stuff I need to do internally only requires access to the subtree
rooted in the node 'n', which is rather small, but the whole document is
huge.
I would like to be able to do something similar with documents I cannot
load into memory. Therefore what I would like to have is an
implementation of Document which, instead of being an explicit tree, is
an implicit representation of a document stored in a file.
As I understand, dom4j does not allow to do that. Writing a new
implementation of Document seems a lot of work, and I'm not really
considering this option.
Any suggestion?
- Luc.
I'm using dom4j to process xml, and mostly do some stuff like that:
Document xmldoc = ...
for (Object o : xml.selectNodes("an xpath expression")) {
Node n = (Node) o;
// do some stuff
}
The stuff I need to do internally only requires access to the subtree
rooted in the node 'n', which is rather small, but the whole document is
huge.
I would like to be able to do something similar with documents I cannot
load into memory. Therefore what I would like to have is an
implementation of Document which, instead of being an explicit tree, is
an implicit representation of a document stored in a file.
As I understand, dom4j does not allow to do that. Writing a new
implementation of Document seems a lot of work, and I'm not really
considering this option.
Any suggestion?
- Luc.