První nástřel – trochu už to funguje, převádí JSON na XML.
1 package cz.frantovo.alt2xml;
3 import javax.xml.parsers.ParserConfigurationException;
4 import javax.xml.parsers.SAXParser;
5 import javax.xml.parsers.SAXParserFactory;
6 import org.xml.sax.SAXException;
7 import org.xml.sax.SAXNotRecognizedException;
8 import org.xml.sax.SAXNotSupportedException;
14 public class SAXTovarna extends SAXParserFactory {
17 public SAXParser newSAXParser() throws ParserConfigurationException, SAXException {
18 return new AltParser();
22 public void setFeature(String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException {
23 throw new UnsupportedOperationException("Not supported yet.");
27 public boolean getFeature(String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException {
28 throw new UnsupportedOperationException("Not supported yet.");