10.10.2013 Views

XML — Architecture, Tools, Techniques - Department of Computer ...

XML — Architecture, Tools, Techniques - Department of Computer ...

XML — Architecture, Tools, Techniques - Department of Computer ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7.4 DTDHandler and DeclHandler<br />

A DTDHandler sees unparsed entity declarations in the DTD. Additionally, it might be possible<br />

to register a DeclHandler as an Object property with the parser. This handler sees the rest<br />

<strong>of</strong> a DTD:<br />

package sax;<br />

import org.xml.sax.DTDHandler;<br />

import org.xml.sax.SAXException;<br />

import org.xml.sax.ext.DeclHandler;<br />

/** interfaces to DTD information.<br />

*/<br />

public class DDup implements DTDHandler, DeclHandler {<br />

// DTDHandler<br />

98<br />

sax/DDup.java<br />

public void notationDecl (String name, String publicId, String systemId)<br />

throws SAXException {<br />

StringBuffer b = new StringBuffer("');<br />

System.out.println(b); // \n does not get reported.<br />

}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!