public interface IXMLValidator
Modifier and Type | Method and Description |
---|---|
void |
attributeAdded(String key,
String value,
String systemId,
int lineNr)
Indicates that an attribute has been added to the current element.
|
void |
elementAttributesProcessed(String name,
Properties extraAttributes,
String systemId,
int lineNr)
This method is called when the attributes of an XML element have been
processed.
|
void |
elementEnded(String name,
String systemId,
int lineNr)
Indicates that the current element has ended.
|
void |
elementStarted(String name,
String systemId,
int lineNr)
Indicates that an element has been started.
|
IXMLEntityResolver |
getParameterEntityResolver()
Returns the parameter entity resolver.
|
void |
parseDTD(String publicID,
IXMLReader reader,
IXMLEntityResolver entityResolver,
boolean external)
Parses the DTD.
|
void |
PCDataAdded(String systemId,
int lineNr)
Indicates that a new #PCDATA element has been encountered.
|
void |
setParameterEntityResolver(IXMLEntityResolver resolver)
Sets the parameter entity resolver.
|
void setParameterEntityResolver(IXMLEntityResolver resolver)
resolver
- the entity resolver.IXMLEntityResolver getParameterEntityResolver()
void parseDTD(String publicID, IXMLReader reader, IXMLEntityResolver entityResolver, boolean external) throws Exception
publicID
- the public ID, which may be null.reader
- the reader to read the DTD from.entityResolver
- the entity resolver.external
- true if the DTD is external.Exception
- If something went wrong.void elementStarted(String name, String systemId, int lineNr) throws Exception
name
- the name of the element.systemId
- the system ID of the XML data of the element.lineNr
- the line number in the XML data of the element.Exception
- If the element could not be validated.void elementEnded(String name, String systemId, int lineNr) throws Exception
name
- the name of the element.systemId
- the system ID of the XML data of the element.lineNr
- the line number in the XML data of the element.Exception
- If the element could not be validated.void attributeAdded(String key, String value, String systemId, int lineNr) throws Exception
key
- the name of the attribute.value
- the value of the attribute.systemId
- the system ID of the XML data of the element.lineNr
- the line number in the XML data of the element.Exception
- If the attribute could not be validated.void elementAttributesProcessed(String name, Properties extraAttributes, String systemId, int lineNr) throws Exception
name
- the name of the element.extraAttributes
- where to put extra attributes.systemId
- the system ID of the XML data of the element.lineNr
- the line number in the XML data of the element.Exception
- if the element could not be validated.void PCDataAdded(String systemId, int lineNr) throws Exception
systemId
- the system ID of the XML data of the element.lineNr
- the line number in the XML data of the element.Exception
- if the element could not be validated.