| java.lang.Object org.xml.sax.helpers.DefaultHandler org.continuent.sequoia.common.xml.XmlValidator
XmlValidator | public XmlValidator(String pathToDtd, String xml)(Code) | | Check the given dtd, and the given xml are valid.
Parameters: pathToDtd - path to dtd Parameters: xml - source to parse as a string |
getExceptions | public ArrayList getExceptions()(Code) | | Retrieve an ArrayList of all parsing exceptions
an ArrayList of Exception |
getLastException | public Exception getLastException()(Code) | | Return the last cause of parsing failure
exception, null if no exception |
getXmlContent | public String getXmlContent()(Code) | | get the xml that was formatted
xml |
isDtdValid | public boolean isDtdValid()(Code) | | Returns the isDtdValid. |
isValid | public boolean isValid()(Code) | | Returns the isXmlValid. |
isXmlValid | public boolean isXmlValid()(Code) | | Returns the isXmlValid. |
main | public static void main(String[] args) throws Exception(Code) | | Allow to use the xml validator as an external program
Parameters: args - the xmlfile and the dtd file throws: Exception - if fails |
setDtdValid | public void setDtdValid(boolean isDtdValid)(Code) | | Parameters: isDtdValid - The isDtdValid to set. |
setXmlValid | public void setXmlValid(boolean isXmlValid)(Code) | | Parameters: isXmlValid - The isXmlValid to set. |
validate | public void validate(String pathToDtd, String xml)(Code) | | Starts the verification of the xml document AND the dtd
Parameters: pathToDtd - path Parameters: xml - content |
Methods inherited from org.xml.sax.helpers.DefaultHandler | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|