Add an attribute to the end of the list.
Reports an attribute name without a value.
Reports an attribute name; a value will follow.
Make this element anonymous.
Add or replace a default attribute for an element type in this schema.
Default implementation of the Attributes interface.
Construct a new, empty AttributesImpl object.
Copy an existing Attributes object.
Return the attributes as an AttributesImpl object.
Returns the default attributes associated with this element type.
Given an InputStream, return a suitable Reader that understands
the presumed character encoding of that InputStream.
Classes which accept an InputStream and provide a Reader which figures
out the encoding of the InputStream and reads characters from it should
conform to this interface.
Specifies the AutoDetector (for encoding detection) this Parser uses.
Reports an attribute value.
Return true if the type of this element can contain the type of
another element.
Returns true if this element type can contain another element type.
A value of "true" indicates that the parser will treat CDATA
elements specially.
Reports the content of a CDATA section (not a CDATA element)
Write a string of character data, with XML escaping.
Clean the attributes of this element.
Clear the attribute list for reuse.
The stand-alone TagSoup program.
Write an element with character data content but no attributes or Namespace URI.
Write an element with character data content but no attributes.
Write an element with character data content.
Parsing the complete XML Document Type Definition is way too complex,
but for many simple cases we can extract something useful from it.
Reports a <!....> declaration - typically a DOCTYPE
A value of "true" indicates that the parser will return default
attribute values for missing attributes that have default values.
The internal representation of an actual element (not an element type).
Return an Element from a specified ElementType.
This class represents an element type in the schema.
Add or replace an element type for this schema.
Construct an ElementType:
but it's better to use Schema.element() instead.
Add an empty element without a Namespace URI, qname or attributes.
Add an empty element without a qname or attributes.
Write a newline at the end of the document.
End an element without a Namespace URI or qname.
End an element without a qname.
Reports an entity reference or character reference.
Add to or replace a character entity in this schema.
Reports whether this parser processes external general entities
(it doesn't).
Reports whether this parser processes external parameter entities
(it doesn't).
Get an ElementType by name.
Returns the value of the last entity or character reference reported.
Get an entity value by name.
Returns whether the specified property will be enabled or disabled
on reader instances constructed by this factory.
Look up an attribute's index by qualified (prefixed) name.
Look up an attribute's index by Namespace name.
Return the number of attributes in the list.
Return an attribute's local name.
To support SAX1 interface, we'll need to use an adapter.
Return the prefix of this schema.
Get the current or preferred prefix for a Namespace URI.
Return an attribute's qualified (prefixed) name.
Return an attribute's type by index.
Look up an attribute's type by qualified (prefixed) name.
Look up an attribute's type by Namespace-qualified name.
Return the URI (namespace name) of this schema.
Return an attribute's Namespace URI.
Return an attribute's value by index.
Look up an attribute's value by qualified (prefixed) name.
Look up an attribute's value by Namespace-qualified name.
Reports the general identifier (element type name) of a start-tag.
A value of "true" indicates that the LexicalHandler will report
the beginning and end of parameter entities (it won't).
Used to see some syntax events that are essential in some
applications: comments, CDATA delimiters, selected general
entity inclusions, and the start and end of the DTD (and
declaration of document element name).
Return the local name of the element's type.
Returns the local name of this element type.
Return a local name from a Qname.
Return the name of the element's type.
Returns the name of this element type.
Return the namespace name of the element's type.
Returns the namespace name of this element type.
Return a namespace name from a Qname.
A value of "true" indicates that XML qualified names (with prefixes)
and attributes (including xmlns* attributes) will be available.
A value of "true" indicates namespace URIs and unprefixed local
names for element and attribute names will be available.
Creates a new instance of SAXParser
using the currently
configured factory parameters.
Return the next element in an element stack or queue.
Normalize an attribute value (ID-style).
Return the parent element type of the element's type.
Returns the parent element type of this element type.
Specify natural parent of an element in this schema.
Reports character content.
Reports the data part of a processing instruction.
Reports the target part of a processing instruction.
Force this element to preclosed status, meaning that an end-tag has
been seen but the element cannot yet be closed for structural reasons.
Write a processing instruction.
A Scanner that accepts PYX format instead of HTML.
A ContentHandler that generates PYX format instead of XML.
Remove an attribute from the list.
Reset the embedded locator.
Reset the embedded locator.
A value of "true" indicates that system IDs in declarations will
be absolutized (relative to their base URIs) before reporting.
A value of "true" indicates that the parser will
attempt to restart the restartable elements.
A value of "true" indicates that the parser will allow unknown
elements to be the root element.
Get the root element of this schema
This is a simpler adapter class that allows using SAX1 interface on top
of basic SAX2 implementation, such as TagSoup.
This is a simple implementation of JAXP SAXParserFactory
,
to allow easier integration of TagSoup with the default JDK
xml processing stack.
This is a simple implementation of JAXP SAXParser
,
to allow easier integration of TagSoup with the default JDK
xml processing stack.
An interface that Scanners use to report events in the input stream.
An interface allowing Parser to invoke scanners.
Specifies the Scanner object this Parser uses.
Abstract class representing a TSSL schema.
Returns the schema which this element type is associated with.
Specifies the Schema object this Parser uses.
Set an attribute in the list.
Sets an attribute and its value into an AttributesImpl object.
Set an attribute and its value into this element.
Sets an attribute and its value into this element type.
Copy an entire Attributes object.
Defines that the specified feature is to enabled/disabled (as
per second argument) on reader instances created by this
factory.
Sets the flags of this element type.
Set the local name of a specific attribute.
Sets the content models to which this element type belongs.
Sets the models of this element type.
Change the next element in an element stack or queue.
Set a new output destination for the document.
Sets the parent element type of this element type.
Change the prefix of this schema.
Specify a preferred prefix for a Namespace URI.
Set the qualified name of a specific attribute.
Set the type of a specific attribute.
Set the Namespace URI of a specific attribute.
Change the URI (namespace name) of this schema.
Set the value of a specific attribute.
Reports the close of a start-tag.
Reports the close of an empty-tag.
Signal to the scanner to start CDATA content mode.
Signal to the scanner to start CDATA content mode.
Write the XML declaration at the beginning of the document.
Start a new element without a qname, attributes or a Namespace URI.
Start a new element without a qname or attributes.
Has a value of "true" if all XML names (for elements,
prefixes, attributes, entities, notations, and local
names), as well as Namespace URIs, will have been interned
using java.lang.String.intern.
Controls whether the parser reports Unicode normalization
errors as described in section 2.13 and Appendix B of the XML
1.1 Recommendation.
Returns "true" if the Attributes objects passed by this
parser in ContentHandler.startElement() implement the
org.xml.sax.ext.Attributes2 interface.
Returns "true" if, when setEntityResolver is given an object
implementing the org.xml.sax.ext.EntityResolver2 interface,
those new methods will be used.
Returns "true" if the Locator objects passed by this parser
in ContentHandler.setDocumentLocator() implement the
org.xml.sax.ext.Locator2 interface.