Package aQute.libg.sax

Examples of aQute.libg.sax.SAXElement


    if (elementDepth++ == 0) {
      if (rootElements.isEmpty())
        super.startElement(uri, localName, qName, atts);
      else if (!rootElements.get(0).getqName().equals(qName))
        throw new SAXException(String.format("Documents have inconsistent root element names: first was %s, current is %s.", rootElements.get(0).getqName(), qName));
      rootElements.add(new SAXElement(uri, localName, qName, atts));
    } else {
      super.startElement(uri, localName, qName, atts);
    }
  }
View Full Code Here


      super.processingInstruction(target, data);
  }
 
  public void closeRootAndDocument() throws SAXException {
    if (!rootElements.isEmpty()) {
      SAXElement root = rootElements.get(0);
      super.endElement(root.getUri(), root.getLocalName(), root.getqName());
    }
    super.endDocument();
  }
View Full Code Here

TOP

Related Classes of aQute.libg.sax.SAXElement

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.