diff options
author | Keiron Liddle <keiron@apache.org> | 2001-11-02 11:06:09 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-11-02 11:06:09 +0000 |
commit | cfc0da75fcc187e6dd7596e7480c4941e278b9d5 (patch) | |
tree | 8dadcac1a3dc6bcda7017fe8a71736fd044fb575 /src/org/apache/fop/fo | |
parent | 4cf83fe1e5dab96e2e348877b0e43d8abdc6c0d9 (diff) | |
download | xmlgraphics-fop-cfc0da75fcc187e6dd7596e7480c4941e278b9d5.tar.gz xmlgraphics-fop-cfc0da75fcc187e6dd7596e7480c4941e278b9d5.zip |
updated a few hashtables and vectors
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194535 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo')
-rw-r--r-- | src/org/apache/fop/fo/XMLObj.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/org/apache/fop/fo/XMLObj.java b/src/org/apache/fop/fo/XMLObj.java index c7631efac..bc56718aa 100644 --- a/src/org/apache/fop/fo/XMLObj.java +++ b/src/org/apache/fop/fo/XMLObj.java @@ -17,6 +17,7 @@ import org.apache.fop.datatypes.IDReferences; import org.w3c.dom.*; import org.xml.sax.Attributes; +import javax.xml.parsers.DocumentBuilderFactory; import java.util.*; @@ -105,12 +106,10 @@ public abstract class XMLObj extends FObj { element = null; try { - // DOMImplementation impl = javax.xml.parsers.DocumentBuilderFactory.newInstance().newDocumentBuilder().getDOMImplementation(); - // String ns = GraphElementMapping.URI; - // doc = impl.createDocument(ns, "graph", null); - doc = - javax.xml.parsers.DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); - Element el = doc.createElement("graph"); + DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance(); + fact.setNamespaceAware(true); + doc = fact.newDocumentBuilder().newDocument(); + Element el = doc.createElement(tagName); doc.appendChild(el); element = doc.getDocumentElement(); |