The attached patch adds support for long attributes, and readObject(String tagname) and readObject(String tagname, int index) methods in DOMInput/DOMOutput infrastructure. Patch also implements these in JavaxDOMInput/Output and NanoXMLDOMInput/Output.
Our applications require support for storing long primitive types. Reading objects by tagname (and possible index) makes implementing custom read(DOMInput) methods a lot easier.
Add long attributes and readObject(tagname [, index])