Пример #1
0
 public void generateFirstDelimitersIfNeeded() throws SAXException {
   if (mustGenerateFirstDelimiters) {
     // Generate first delimiter
     beginDelimiterListener.generateFirstDelimiter(this);
     mustGenerateFirstDelimiters = false;
   }
 }
Пример #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;
    }
  }