Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<query_results> | |
<row id="1"> | |
<distance>.1..</distance> | |
<post_title>.1..</post_title> | |
<post_excerpt>..1.</post_excerpt> | |
<ID>.1..</ID> | |
</row> | |
<row id="2"> | |
<distance>.2..</distance> | |
<post_title>..2.</post_title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SAXReaderExample { | |
public static final String PATH = "/tmp/resources"; | |
public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException { | |
SAXParserFactory spf = SAXParserFactory.newInstance(); | |
SAXParser sp = spf.newSAXParser(); | |
XMLReader reader = sp.getXMLReader(); | |
reader.setContentHandler(new SchemaSaxHandler()); | |
reader.parse(new InputSource(new FileInputStream(new File(PATH, "source.xsd")))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Highlight syntax for Mou.app, insert at the bottom of the markdown document --> | |
<script src="http://yandex.st/highlightjs/7.3/highlight.min.js"></script> | |
<link rel="stylesheet" href="http://yandex.st/highlightjs/7.3/styles/github.min.css"> | |
<script> | |
hljs.initHighlightingOnLoad(); | |
</script> |
NewerOlder