/** * <b>SAX</b>: Implements {@link * org.xml.sax.ContentHandler#startDocument()}. */ public void startDocument() throws SAXException { preInfo = new LinkedList(); namespaces = new HashTableStack(); namespaces.put("xml", XMLSupport.XML_NAMESPACE_URI); namespaces.put("xmlns", XMLSupport.XMLNS_NAMESPACE_URI); namespaces.put("", null); inDTD = false; inCDATA = false; inProlog = true; currentNode = null; document = null; doctype = null; isStandalone = false; xmlVersion = XMLConstants.XML_VERSION_10; stringBuffer.setLength(0); stringContent = false; if (createDocumentDescriptor) { documentDescriptor = new DocumentDescriptor(); } else { documentDescriptor = null; } }
/** * <b>SAX</b>: Implements {@link * org.xml.sax.ContentHandler#startDocument()}. */ public void startDocument() throws SAXException { preInfo = new LinkedList(); namespaces = new HashTableStack(); namespaces.put("xml", XMLSupport.XML_NAMESPACE_URI); namespaces.put("xmlns", XMLSupport.XMLNS_NAMESPACE_URI); namespaces.put("", null); inDTD = false; inCDATA = false; inProlog = true; currentNode = null; document = null; doctype = null; isStandalone = false; xmlVersion = XMLConstants.XML_VERSION_10; stringBuffer.setLength(0); stringContent = false; if (createDocumentDescriptor) { documentDescriptor = new DocumentDescriptor(); } else { documentDescriptor = null; } }
/** * <b>SAX</b>: Implements {@link * org.xml.sax.ContentHandler#startDocument()}. */ public void startDocument() throws SAXException { preInfo = new LinkedList(); namespaces = new HashTableStack(); namespaces.put("xml", XMLSupport.XML_NAMESPACE_URI); namespaces.put("xmlns", XMLSupport.XMLNS_NAMESPACE_URI); namespaces.put("", null); inDTD = false; inCDATA = false; inProlog = true; currentNode = null; document = null; doctype = null; isStandalone = false; xmlVersion = XMLConstants.XML_VERSION_10; stringBuffer.setLength(0); stringContent = false; if (createDocumentDescriptor) { documentDescriptor = new DocumentDescriptor(); } else { documentDescriptor = null; } }
/** * Receive notification of the beginning of a document. * * @exception SAXException If this method was not called appropriately. */ public void startDocument() throws SAXException { try { // Create SVG Document String namespaceURI = SVGDOMImplementation.SVG_NAMESPACE_URI; super.document = implementation.createDocument(namespaceURI, "svg", null); super.startDocument(); // Add svg, and SVG_NAMESPACE to SAXDocumentFactory namespace handling. // This ties 'svg' prefix used above to the svg namespace uri. namespaces.put("svg", SVGDOMImplementation.SVG_NAMESPACE_URI); } catch (SAXException se) { throw se; } catch (Exception ex){ if (getLogger().isDebugEnabled()) { getLogger().debug("Got exception in startDocument, rethrowing", ex); } throw new SAXException("Exception in startDocument", ex); } }