Updating xml using dom in java
You can configure the DOM with different access patterns such as read-only, streaming, transient update, and shadow copy, achieving maximum memory use and performance in your applications.
Unlike DOM, SAX is event-based, so it does not build in-memory tree representations of input documents.
The XML parser for Java can parse unqualified element types and attribute names as well as those in namespaces.
Namespaces are a mechanism to resolve or avoid name collisions between element types or attributes in XML documents by providing "universal" names. to set the parser mode to validating or nonvalidating.
The SAX and DOM APIs provided in the Oracle XDK are examples of vendor-specific implementations supported by JAXP.The degree of compression depends on the type of document: the larger the tags and the lesser the text content, the better the compression.