Home | History | Annotate | Download | only in serializer

Lines Matching refs:dom

26 import org.w3c.dom.DOMErrorHandler;

27 import org.w3c.dom.Node;
28 import org.w3c.dom.ls.LSSerializerFilter;
32 * by an end user, but rather by an XML parser that is implementing the DOM
36 * See the DOM Level 3 Load and Save interface at <a href="http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/load-save.html#LS-LSSerializer">LSSeializer</a>.
38 * For a list of configuration parameters for DOM Level 3 see <a href="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#DOMConfiguration">DOMConfiguration</a>.
39 * For additional configuration parameters available with the DOM Level 3 Load and Save API LSSerializer see
40 * <a href="http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/load-save.html#LS-LSSerializer-config">LSerializer config</a>.
43 * parser that uses this class as part of its implementation of the DOM Level 3
44 * Load and Save APIs, and is the prefered way to serialize with DOM Level 3 APIs.
54 * // Serialize using standard DOM Level 3 Load/Save APIs
58 * public org.w3c.dom.Document getDocument() throws Exception {
59 * // Create a simple DOM Document.
65 * org.w3c.dom.Document doc = builder.parse(is);
70 * // This method uses standard DOM Level 3 Load Save APIs:
71 * // org.w3c.dom.bootstrap.DOMImplementationRegistry
72 * // org.w3c.dom.ls.DOMImplementationLS
73 * // org.w3c.dom.ls.DOMImplementationLS
74 * // org.w3c.dom.ls.LSSerializer
75 * // org.w3c.dom.DOMConfiguration
78 * // name of the class implementing the DOM Level 3 Load Save APIs,
80 * // org.apache.xerces.dom.DOMImplementationSourceImpl
85 * // Get a simple DOM Document that will be serialized.
86 * org.w3c.dom.Document docToSerialize = getDocument();
89 * org.w3c.dom.ls.DOMImplementationLS impl =
90 * (org.w3c.dom.ls.DOMImplementationLS)
91 * org.w3c.dom.bootstrap.DOMImplementationRegistry.newInstance().getDOMImplementation("LS");
95 * org.w3c.dom.ls.LSSerializer writer = impl.createLSSerializer();
96 * org.w3c.dom.DOMConfiguration config = writer.getDomConfig();
107 * @see <a href="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#DOMConfiguration">DOMConfiguration</a>
108 * @see <a href="http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/load-save.html#LS-LSSerializer-config">LSSerializer</a>
117 * Serializes the Level 3 DOM node. Throws an exception only if an I/O
122 * @param node the Level 3 DOM node to serialize
128 * Sets a DOMErrorHandler on the DOM Level 3 Serializer.
137 * Returns a DOMErrorHandler set on the DOM Level 3 Serializer.
146 * Sets a LSSerializerFilter on the DOM Level 3 Serializer to filter nodes
156 * Returns a LSSerializerFilter set on the DOM Level 3 Serializer to filter nodes