Contains classes and interfaces which are used to work with XML data. With pull parser interface {@link org.idoox.xml.Tokenizer} you can read XML data. Writing is done conversely via the {@link org.idoox.xml.TokenWriter} interface.
Both of these interfaces represent the streaming approach to XML processing (XML document is represented as sequence of XML {@link org.idoox.xml.Token Tokens}), although a {@link org.idoox.xml.Tokenizer} can be translated into a DOM Element tree using its method {@link org.idoox.xml.Tokenizer#getDOMRepresentation}.
Example of reading XML via Tokenizer:
Tokenizer tokenizer; /* tokenizer must be set here*/ Token token = new Token(); byte type; while ((type = tokenizer.next()) != Tokenizer.END_DOCUMENT){ switch(type){ case Tokenizer.START_TOKEN: tokenizer.readToken(token); System.out.println("Start of element: "+token.getLocalName()); break; case Tokenizer.END_TOKEN: tokenizer.readToken(token); System.out.println("End of element: "+token.getLocalName()); break; case Tokenizer.CONTENT: System.out.println("Elm:"+tokenizer.readContent()); break; } }