public class OpenID4JavaDOMParser
extends org.cyberneko.html.parsers.DOMParser
implements org.cyberneko.html.HTMLTagBalancingListener
This extended parser marks that a(or more) HTML element head
is
ignored while parsing.
fUseEntityResolver2, SYMBOL_TABLE, USE_ENTITY_RESOLVER2, XMLGRAMMAR_POOL
CORE_DOCUMENT_CLASS_NAME, CREATE_CDATA_NODES_FEATURE, CREATE_ENTITY_REF_NODES, CURRENT_ELEMENT_NODE, DEFAULT_DOCUMENT_CLASS_NAME, DEFER_NODE_EXPANSION, DOCUMENT_CLASS_NAME, fBaseURIStack, fCreateCDATANodes, fCreateEntityRefNodes, fCurrentCDATASection, fCurrentCDATASectionIndex, fCurrentEntityDecl, fCurrentNode, fCurrentNodeIndex, fDeferNodeExpansion, fDeferredDocumentImpl, fDeferredEntityDecl, fDocument, fDocumentClassName, fDocumentImpl, fDocumentIndex, fDocumentType, fDocumentTypeIndex, fDOMFilter, fErrorHandler, fFilterReject, fFirstChunk, fInCDATASection, fIncludeComments, fIncludeIgnorableWhitespace, fInDTD, fInDTDExternalSubset, fInEntityRef, fInternalSubset, fNamespaceAware, fRejectedElementDepth, fRoot, fSkippedElemStack, fStorePSVI, fStringBuffer, INCLUDE_COMMENTS_FEATURE, INCLUDE_IGNORABLE_WHITESPACE, NAMESPACES, PSVI_DOCUMENT_CLASS_NAME
fDocumentSource, fDTDContentModelSource, fDTDSource
ENTITY_RESOLVER, ERROR_HANDLER, fConfiguration
Constructor and Description |
---|
OpenID4JavaDOMParser() |
Modifier and Type | Method and Description |
---|---|
static InputSource |
createInputSource(String s)
Create an InputSource form a String.
|
void |
ignoredEndElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.Augmentations augs) |
void |
ignoredStartElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attrs,
org.apache.xerces.xni.Augmentations augs) |
boolean |
isIgnoredHeadStartElement() |
static String |
toXmlString(Document doc)
Transform the document to string.
|
getEntityResolver, getErrorHandler, getFeature, getProperty, getXMLParserConfiguration, parse, parse, setEntityResolver, setErrorHandler, setFeature, setProperty
abort, attributeDecl, characters, comment, createAttrNode, createElementNode, dropDocumentReferences, elementDecl, emptyElement, endAttlist, endCDATA, endConditional, endDocument, endDTD, endElement, endExternalSubset, endGeneralEntity, endParameterEntity, externalEntityDecl, getDocument, getDocumentClassName, handleBaseURI, handleBaseURI, ignorableWhitespace, ignoredCharacters, internalEntityDecl, notationDecl, processingInstruction, reset, setCharacterData, setDocumentClassName, setLocale, startAttlist, startCDATA, startConditional, startDocument, startDTD, startElement, startExternalSubset, startGeneralEntity, startParameterEntity, textDecl, unparsedEntityDecl, xmlDecl
any, element, empty, endContentModel, endGroup, getDocumentSource, getDTDContentModelSource, getDTDSource, occurrence, pcdata, separator, setDocumentSource, setDTDContentModelSource, setDTDSource, startContentModel, startGroup
public OpenID4JavaDOMParser()
public static InputSource createInputSource(String s)
s
- the StringNullPointerException
- if s is null.public static String toXmlString(Document doc) throws TransformerException
doc
- the documentTransformerException
- If an unrecoverable error occurs
during the course of the transformation.public boolean isIgnoredHeadStartElement()
public void ignoredEndElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.Augmentations augs)
ignoredEndElement
in interface org.cyberneko.html.HTMLTagBalancingListener
public void ignoredStartElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attrs, org.apache.xerces.xni.Augmentations augs)
ignoredStartElement
in interface org.cyberneko.html.HTMLTagBalancingListener
Copyright © 2014 Sxip. All rights reserved.