Class XMLTokenStream
-
- org.apache.tapestry5.internal.services.XMLTokenStream
-
public class XMLTokenStream extends
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 Modifier and Type Field Description static
TRANSITIONAL_DOCTYPE
-
Constructor Summary
Constructors Constructor Description XMLTokenStream(Resource resource, <,> publicIdToURL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAttributeCount()
getAttributeName(int i)
getAttributeValue(int i)
DTDData
getDTDInfo()
XMLTokenType
getEventType()
getLocalName()
Location
getLocation()
int
getNamespaceCount()
getNamespacePrefix(int i)
getNamespaceURI()
getNamespaceURI(int i)
getText()
boolean
hasNext()
XMLTokenType
next()
Returns the type of the next token.void
parse()
-
-
-
Field Detail
-
TRANSITIONAL_DOCTYPE
public static final TRANSITIONAL_DOCTYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XMLTokenStream
public XMLTokenStream(Resource resource, <,> publicIdToURL)
-
-
Method Detail
-
parse
public void parse() throws ,
- Throws:
-
next
public XMLTokenType next()
Returns the type of the next token.
-
getAttributeCount
public int getAttributeCount()
-
getAttributeName
public getAttributeName(int i)
-
getDTDInfo
public DTDData getDTDInfo()
-
getEventType
public XMLTokenType getEventType()
-
getLocalName
public getLocalName()
-
getLocation
public Location getLocation()
-
getNamespaceCount
public int getNamespaceCount()
-
getNamespacePrefix
public getNamespacePrefix(int i)
-
getNamespaceURI
public getNamespaceURI()
-
getNamespaceURI
public getNamespaceURI(int i)
-
getText
public getText()
-
hasNext
public boolean hasNext()
-
getAttributeValue
public getAttributeValue(int i)
-
-