286N/A<?xml version="1.0" encoding="UTF-8"?>
286N/A<!--
286N/ACopyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
286N/ADO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
286N/A
286N/AThis code is free software; you can redistribute it and/or modify it
286N/Aunder the terms of the GNU General Public License version 2 only, as
286N/Apublished by the Free Software Foundation. Oracle designates this
286N/Aparticular file as subject to the "Classpath" exception as provided
286N/Aby Oracle in the LICENSE file that accompanied this code.
286N/A
286N/AThis code is distributed in the hope that it will be useful, but WITHOUT
286N/AANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
286N/AFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
286N/Aversion 2 for more details (a copy is included in the LICENSE file that
286N/Aaccompanied this code).
286N/A
286N/AYou should have received a copy of the GNU General Public License version
286N/A2 along with this work; if not, write to the Free Software Foundation,
286N/AInc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
286N/A
286N/APlease contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
286N/Aor visit www.oracle.com if you need additional information or have any
286N/Aquestions.
286N/A-->
286N/A
286N/A<!DOCTYPE html
286N/A PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
286N/A "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
286N/A
286N/A<html xmlns="http://www.w3.org/1999/xhtml">
286N/A
286N/A<head>
286N/A <title>javax.xml.transform.dom</title>
286N/A
286N/A <meta name="CVS"
286N/A content="$Id: package.html,v 1.2 2005/06/10 03:50:40 jeffsuttor Exp $" />
286N/A <meta name="AUTHOR"
286N/A content="Jeff.Suttor@Sun.com" />
286N/A</head>
286N/A<body>
286N/A<p>This package implements DOM-specific transformation APIs.</p>
286N/A<p>The {@link javax.xml.transform.dom.DOMSource} class allows the
286N/Aclient of the implementation of this API to specify a DOM
286N/A{@link org.w3c.dom.Node} as the source of the input tree. The model of
286N/Ahow the Transformer deals with the DOM tree in terms of mismatches with the
286N/A<A href="http://www.w3.org/TR/xslt#data-model">XSLT data model</A> or
286N/Aother data models is beyond the scope of this document. Any of the nodes
286N/Aderived from {@link org.w3c.dom.Node} are legal input.</p>
286N/A<p>The {@link javax.xml.transform.dom.DOMResult} class allows
286N/Aa {@link org.w3c.dom.Node} to be specified to which result DOM nodes will
286N/Abe appended. If an output node is not specified, the transformer will use
286N/A{@link javax.xml.parsers.DocumentBuilder#newDocument} to create an
286N/Aoutput {@link org.w3c.dom.Document} node. If a node is specified, it
286N/Ashould be one of the following: {@link org.w3c.dom.Document},
286N/A{@link org.w3c.dom.Element}, or
286N/A{@link org.w3c.dom.DocumentFragment}. Specification of any other node
286N/Atype is implementation dependent and undefined by this API. If the result is a
286N/A{@link org.w3c.dom.Document}, the output of the transformation must have
286N/Aa single element root to set as the document element.</p>
286N/A<p>The {@link javax.xml.transform.dom.DOMLocator} node may be passed
286N/Ato {@link javax.xml.transform.TransformerException} objects, and
286N/Aretrieved by trying to cast the result of the
286N/A{@link javax.xml.transform.TransformerException#getLocator()} method.
286N/AThe implementation has no responsibility to use a DOMLocator instead of a
286N/A{@link javax.xml.transform.SourceLocator} (though line numbers and the
286N/Alike do not make much sense for a DOM), so the result of getLocator must always
286N/Abe tested with an instanceof. </p>
286N/A</body>
286N/A</html>