Пример #1
0
  protected boolean isNamespaceDeclaration(Namespace ns) {
    if ((ns != null) && (ns != Namespace.XML_NAMESPACE)) {
      String uri = ns.getURI();

      if (uri != null) {
        if (!namespaceStack.contains(ns)) {
          return true;
        }
      }
    }

    return false;
  }
Пример #2
0
 /* 575:    */
 /* 576:    */ protected boolean isIgnoreableNamespace(
     Namespace namespace, NamespaceStack namespaceStack)
       /* 577:    */ {
   /* 578:889 */ if ((namespace.equals(Namespace.NO_NAMESPACE))
       || (namespace.equals(Namespace.XML_NAMESPACE))) {
     /* 579:891 */ return true;
     /* 580:    */ }
   /* 581:894 */ String uri = namespace.getURI();
   /* 582:896 */ if ((uri == null) || (uri.length() <= 0)) {
     /* 583:897 */ return true;
     /* 584:    */ }
   /* 585:900 */ return namespaceStack.contains(namespace);
   /* 586:    */ }