Package org.w3c.dom

Examples of org.w3c.dom.Node.lookupPrefix()


        }
        Node node = element;
        String prefix = "";
        boolean declared = false;
        while (node != null && node.getNodeType() == Node.ELEMENT_NODE) {
            if ( node.lookupPrefix(ns) != null ) {
                prefix = node.lookupPrefix(ns);
                declared = true;
                break;
            } else {
                /*NamedNodeMap attrs = node.getAttributes();
View Full Code Here


        Node node = element;
        String prefix = "";
        boolean declared = false;
        while (node != null && node.getNodeType() == Node.ELEMENT_NODE) {
            if ( node.lookupPrefix(ns) != null ) {
                prefix = node.lookupPrefix(ns);
                declared = true;
                break;
            } else {
                /*NamedNodeMap attrs = node.getAttributes();
                if (attrs == null) {
View Full Code Here

  }

  public String lookupPrefix(String namespaceURI)
  {
    Node root = getDocumentElement();
    return (root == null) ? null : root.lookupPrefix(namespaceURI);
  }

  public boolean isDefaultNamespace(String namespaceURI)
  {
    Node root = getDocumentElement();
View Full Code Here

      String expr = "/SOAP-ENV:Envelope | /soap:Envelope | /soap_2003_05:Envelope";
      Node ndSoapEnv = (Node)xpath.evaluate(expr,dom,XPathConstants.NODE);
      if (ndSoapEnv != null) {
        this.setWasSoap(true);
        nsSoapUri = ndSoapEnv.getNamespaceURI();
        nsSoapPfx = ndSoapEnv.lookupPrefix(nsSoapUri);
        expr = "//SOAP-ENV:Body | //soap:Body | //soap_2003_05:Body";
        Node ndSoapBody = (Node)xpath.evaluate(expr,ndSoapEnv,XPathConstants.NODE);
        if (ndSoapBody == null) {
          throw new OwsException(OwsException.OWSCODE_MissingParameterValue,
              "Envelope","The SOAP body was missing.");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.