fr.tireme.schemadoc.graphics
Class RemoveDoctypeSaxParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
fr.tireme.schemadoc.graphics.RemoveDoctypeSaxParser
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.ext.DeclHandler
public class RemoveDoctypeSaxParser
- extends org.xml.sax.helpers.DefaultHandler
- implements org.xml.sax.DTDHandler, org.xml.sax.ext.DeclHandler
Enable to redress all files generated by XMLSpy that contains a DOCTYPE declaration. This is needed as soon as there
is an XML wrapper of all spy html files because the xml standard does not allows included data to have a doctype
declaration. The process stops as soon as the doctype internal declaration has been explored.
- Since:
- 21 avril 2003
- Version:
- 2.0
- Author:
- pierre
|
Method Summary |
void |
attributeDecl(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.String arg4)
|
void |
elementDecl(java.lang.String arg0,
java.lang.String arg1)
|
void |
externalEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Main External entity declaration remote procedure enabling to get all files locations. |
void |
internalEntityDecl(java.lang.String arg0,
java.lang.String arg1)
|
void |
remove(java.lang.String filename)
Main SAX running program |
void |
startElement(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2,
org.xml.sax.Attributes arg3)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.DTDHandler |
notationDecl, unparsedEntityDecl |
RemoveDoctypeSaxParser
public RemoveDoctypeSaxParser(ReorganizeDoc _rd)
- Constructor
- Parameters:
_rd - a handle to the global structure
attributeDecl
public void attributeDecl(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.String arg4)
throws org.xml.sax.SAXException
- Specified by:
attributeDecl in interface org.xml.sax.ext.DeclHandler
- Throws:
org.xml.sax.SAXException
elementDecl
public void elementDecl(java.lang.String arg0,
java.lang.String arg1)
throws org.xml.sax.SAXException
- Specified by:
elementDecl in interface org.xml.sax.ext.DeclHandler
- Throws:
org.xml.sax.SAXException
externalEntityDecl
public void externalEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
- Main External entity declaration remote procedure enabling to get all files locations.
- Specified by:
externalEntityDecl in interface org.xml.sax.ext.DeclHandler
- Throws:
org.xml.sax.SAXException
internalEntityDecl
public void internalEntityDecl(java.lang.String arg0,
java.lang.String arg1)
throws org.xml.sax.SAXException
- Specified by:
internalEntityDecl in interface org.xml.sax.ext.DeclHandler
- Throws:
org.xml.sax.SAXException
remove
public void remove(java.lang.String filename)
throws StandardException
- Main SAX running program
- Parameters:
filename - the file to explore
- Throws:
StandardException
startElement
public void startElement(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2,
org.xml.sax.Attributes arg3)
throws org.xml.sax.SAXException
- Specified by:
startElement in interface org.xml.sax.ContentHandler- Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException