| java.lang.Object org.apache.struts.tiles.xmlDefinition.XmlParser
XmlParser | public class XmlParser (Code) | | Parse an XML definitions file.
|
Field Summary | |
protected Digester | digester Associated digester. | protected String | registrations The set of public identifiers, and corresponding resource names for
the versions of the configuration file DTDs we know about. | protected boolean | validating Should we use a validating XML parser to read the configuration file. |
Constructor Summary | |
public | XmlParser() Constructor. |
Method Summary | |
protected void | initDigester(Digester digester) Init digester. | public static void | main(String[] args) Main method to check file syntax. | public void | parse(InputStream in, XmlDefinitionsSet definitions) Parse input reader and add encountered definitions to definitions set. | public void | setValidating(boolean validating) Set digester validating flag. |
digester | protected Digester digester(Code) | | Associated digester.
|
registrations | protected String registrations(Code) | | The set of public identifiers, and corresponding resource names for
the versions of the configuration file DTDs we know about. There
MUST be an even number of Strings in this list!
|
validating | protected boolean validating(Code) | | Should we use a validating XML parser to read the configuration file.
Default is false .
|
XmlParser | public XmlParser()(Code) | | Constructor.
Creates a digester parser and initializes syntax rules.
|
initDigester | protected void initDigester(Digester digester)(Code) | | Init digester.
Parameters: digester - Digester instance to use. |
main | public static void main(String[] args)(Code) | | Main method to check file syntax.
|
setValidating | public void setValidating(boolean validating)(Code) | | Set digester validating flag.
|
|
|