alex masselot
Usenet Archive
- Joined
- Jan 10, 2007
- Messages
- 1
- Reaction score
- 0
Hello
I'm not familiar with xerces in c++
Currently, we parse xml file with perl (typically XML::Twig) and java (dom4j). With both API, there is a very comfortable way to mix Sax/DOM, by setting handlers to some elements paths.
The xml file is parsed, then once a defined paths is reached, the element is considered and given to a handler subroutines. All the subtree can be explored with domlike call (xpath etc.) as a memory stored element. Then, the tree can be purged, thus the memory released
It's a quite convenient merge, to get the best of two worlds.
Is ithat possible with xerces in c++???
I cannot find any simple answer in apache doc
thanks
Alex
I'm not familiar with xerces in c++
Currently, we parse xml file with perl (typically XML::Twig) and java (dom4j). With both API, there is a very comfortable way to mix Sax/DOM, by setting handlers to some elements paths.
The xml file is parsed, then once a defined paths is reached, the element is considered and given to a handler subroutines. All the subtree can be explored with domlike call (xpath etc.) as a memory stored element. Then, the tree can be purged, thus the memory released
It's a quite convenient merge, to get the best of two worlds.
Is ithat possible with xerces in c++???
I cannot find any simple answer in apache doc
thanks
Alex