Package net.sf.json.xml

Examples of net.sf.json.xml.XMLSerializer


   */
  private JSONObject jsonRule(Rule rule) {

    JSONObject ruleSz = null;
    String xmlRule;
    XMLSerializer xmlS = new XMLSerializer();

    SLDTransformer transform = new SLDTransformer();
    transform.setIndentation(2);
    try {
      xmlRule = transform.transform(rule);
      xmlS.setRemoveNamespacePrefixFromElements(true);
      xmlS.setSkipNamespaces(true);
      ruleSz = (JSONObject) xmlS.read(xmlRule);
    } catch (TransformerException e) {
      if (LOGGER.isLoggable(Level.FINE))
        LOGGER.log(Level.FINE, "Exception occurred while transformin the Rule "
            + e.getLocalizedMessage(),e);
    }
View Full Code Here

TOP

Related Classes of net.sf.json.xml.XMLSerializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.