public void generateFirstDelimitersIfNeeded() throws SAXException {
   if (mustGenerateFirstDelimiters) {
     // Generate first delimiter
     beginDelimiterListener.generateFirstDelimiter(this);
     mustGenerateFirstDelimiters = false;
   }
 }
Esempio n. 2
0
  private void checkDelimiters(String uri, String qName, boolean topLevel) throws SAXException {

    if (topLevel && delimiterNamespaceURI == null) {
      delimiterNamespaceURI = uri;
      delimiterPrefix = XMLUtils.prefixFromQName(qName);
      delimiterLocalName = XMLUtils.localNameFromQName(qName);
    }

    if (mustGenerateFirstDelimiters) {
      // Generate first delimiter
      beginDelimiterListener.generateFirstDelimiter(this);
      mustGenerateFirstDelimiters = false;
    }
  }