JAXP
The Java API for XML Processing
(JAXP) defines a generic API for processing XML documents and
transforming an XML source. The javax.xml.parsers
package contains classes and interfaces needed to parse XML documents
in SAX 2.0 and DOM 2.0 modes, while the
javax.xml.transform
package contains the classes
and interfaces needed for transforming XML data (a source) into
another format (a result). An XML document can manifest itself in
several ways: a stream (File
,
InputStream
, or Reader
), SAX
events, or a DOM tree representation. The aim of JAXP is to provide
applications with a portable way for parsing and transforming XML
documents. WebLogic Server is shipped with JAXP 1.1 classes and
interfaces — by default, this implementation of JAXP is
configured to use WebLogic’s built-in parsers and
transformers.
The JAXP specification demands that you set the appropriate system properties in order to plug in a custom XML parser (or transformer). However, WebLogic deviates from this model. Instead of using system properties, WebLogic allows you to determine the actual parsers used in two ways:
You can create an XML Registry that lets you configure server-specific and document-specific parsers and transformers. XML Registries are domain resources configured using the Administration Console.
You can define application-scoped XML settings in the WebLogic-specific weblogic-application.xml deployment descriptor for an EAR. Here you can specify parser and transformer factories that apply to an enterprise ...
Get WebLogic: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.