Class XMLTokenStream
java.lang.Object
org.apache.tapestry5.internal.services.XMLTokenStream
Parses a document as a stream of XML tokens. It includes a special hack (as of Tapestry 5.3) to support the HTML5 doctype (
<!DOCTYPE html>
)
as if it were the XHTML transitional doctype
(<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getAttributeName
(int i) getAttributeValue
(int i) int
getNamespacePrefix
(int i) getNamespaceURI
(int i) getText()
boolean
hasNext()
next()
Returns the type of the next token.void
parse()
-
Field Details
-
TRANSITIONAL_DOCTYPE
- See Also:
-
-
Constructor Details
-
XMLTokenStream
-
-
Method Details
-
parse
- Throws:
SAXException
IOException
-
next
Returns the type of the next token. -
getAttributeCount
-
getAttributeName
-
getDTDInfo
-
getEventType
-
getLocalName
-
getLocation
-
getNamespaceCount
-
getNamespacePrefix
-
getNamespaceURI
-
getNamespaceURI
-
getText
-
hasNext
-
getAttributeValue
-