DOM-like XML Parsing Providing Import and Export with Bounded Resources
Pedro Côrte-Real (Faculdade de Engenharia da Universidade do Porto)
Gabriel David (Faculdade de Engenharia da Universidade do Porto / INESC Porto)
Silvestre Lacerda (Instituto dos Arquivos Nacionais/Torre do Tombo)
Abstract:
XML parsing is usually done using DOM or SAX.
DOM is memory-bound while SAX provides a fairly low level of abstraction.
We propose an approach to create an object-oriented mapping of an XML format.
Based on the resulting representation, API's for reading and writing complete documents in a DOM-like way are provided. To handle very large documents we propose an event-based API that returns full elements as events and a second API to create unlimited sized documents with memory usage proportional to the maximum tree depth.
Keywords:
Edição e Processamento de Documentos XML