C
ctchrinthry
I have some large and complex XML documents. I want to return the
whole document with some sections trimmed away.
Right now, i read the whole document into some python code, walk the
tree, snip the nodes that i don't want anymore, then dump the whole
tree out.
It seems that it would be better to use an XML database and XQUERY to
do this. However, the large XML document has a large and changing
structure. I have to do this over a number of different documents with
a common sunsection. I don't know how to say "give me this whole
document, except for this part, where i just want you to return the
nodes that match this query."
If your answer is just "buy this book:XXXX" that's fine. But i'd like
to know if it's possible and where to look.
whole document with some sections trimmed away.
Right now, i read the whole document into some python code, walk the
tree, snip the nodes that i don't want anymore, then dump the whole
tree out.
It seems that it would be better to use an XML database and XQUERY to
do this. However, the large XML document has a large and changing
structure. I have to do this over a number of different documents with
a common sunsection. I don't know how to say "give me this whole
document, except for this part, where i just want you to return the
nodes that match this query."
If your answer is just "buy this book:XXXX" that's fine. But i'd like
to know if it's possible and where to look.