Examples of lookupPrefix()


Examples of com.sun.org.apache.xml.internal.serializer.NamespaceMappings.lookupPrefix()

                        // Fix for bug 26319
                        // For attributes not given an prefix explictly
                        // but having a namespace uri we need
                        // to explicitly generate the prefix
                        String newPrefix = nm.lookupPrefix(uriAttr);
                        if (newPrefix == null)
                            newPrefix = nm.generateNextPrefix();
                        prefix = (colon > 0) ? qnameAttr.substring(0, colon)
                            : newPrefix;
                        _handler.namespaceAfterStartElement(prefix, uriAttr);
View Full Code Here

Examples of com.sun.org.apache.xml.internal.serializer.NamespaceMappings.lookupPrefix()

                          
                        // Fix for bug 26319
                        // For attributes not given an prefix explictly
                        // but having a namespace uri we need
                        // to explicitly generate the prefix
                        String newPrefix = nm.lookupPrefix(uriAttr);
                        if (newPrefix == null)
                            newPrefix = nm.generateNextPrefix();
      prefix = (colon > 0) ? qnameAttr.substring(0, colon)
          : newPrefix;
      _handler.namespaceAfterStartElement(prefix, uriAttr);
View Full Code Here

Examples of com.sun.org.apache.xml.internal.serializer.NamespaceMappings.lookupPrefix()

                        // Fix for bug 26319
                        // For attributes not given an prefix explictly
                        // but having a namespace uri we need
                        // to explicitly generate the prefix
                        String newPrefix = nm.lookupPrefix(uriAttr);
                        if (newPrefix == null)
                            newPrefix = nm.generateNextPrefix();
                        prefix = (colon > 0) ? qnameAttr.substring(0, colon)
                            : newPrefix;
                        _handler.namespaceAfterStartElement(prefix, uriAttr);
View Full Code Here

Examples of javax.xml.soap.SOAPElement.lookupPrefix()

            String prefix = nsStack.getPrefix(namespaceURI);
            QName operationName = new QName(namespaceURI, callback.getOperationName() + responseSuffix,
                                            prefix);

            SOAPElement el = body.addChildElement(operationName);
            if (el.lookupPrefix(namespaceURI) == null) {
                el.addNamespaceDeclaration(prefix, namespaceURI);
            }
            return el;
        }
        return body;
View Full Code Here

Examples of org.apache.xerces.dom.NodeImpl.lookupPrefix()

                NodeList ls = doc.getElementsByTagName("a:elem_a");

                NodeImpl elem = (NodeImpl)ls.item(0);
                if (namespaces) {
                    //System.out.println("[a:elem_a].lookupPrefix('http://www.example.com', true) == null");
                    Assertion.verify(elem.lookupPrefix("http://www.example.com").equals("ns1"),
                                     "[a:elem_a].lookupPrefix(http://www.example.com)==null");


                    //System.out.println("[a:elem_a].isDefaultNamespace('http://www.example.com') == true");
                    Assertion.verify(elem.isDefaultNamespace("http://www.example.com") == true,
View Full Code Here

Examples of org.apache.xml.serializer.NamespaceMappings.lookupPrefix()

                          
                        // Fix for bug 26319
                        // For attributes not given an prefix explictly
                        // but having a namespace uri we need
                        // to explicitly generate the prefix
                        String newPrefix = nm.lookupPrefix(uriAttr);
                        if (newPrefix == null)
                            newPrefix = nm.generateNextPrefix();
      prefix = (colon > 0) ? qnameAttr.substring(0, colon)
          : newPrefix;
      _handler.namespaceAfterStartElement(prefix, uriAttr);
View Full Code Here

Examples of org.apache.xml.serializer.NamespaceMappings.lookupPrefix()

                          
                        // Fix for bug 26319
                        // For attributes not given an prefix explictly
                        // but having a namespace uri we need
                        // to explicitly generate the prefix
                        String newPrefix = nm.lookupPrefix(uriAttr);
                        if (newPrefix == null)
                            newPrefix = nm.generateNextPrefix();
      prefix = (colon > 0) ? qnameAttr.substring(0, colon)
          : newPrefix;
      _handler.namespaceAfterStartElement(prefix, uriAttr);
View Full Code Here

Examples of org.apache.xml.serializer.NamespaceMappings.lookupPrefix()

                          
                        // Fix for bug 26319
                        // For attributes not given an prefix explictly
                        // but having a namespace uri we need
                        // to explicitly generate the prefix
                        String newPrefix = nm.lookupPrefix(uriAttr);
                        if (newPrefix == null)
                            newPrefix = nm.generateNextPrefix();
      prefix = (colon > 0) ? qnameAttr.substring(0, colon)
          : newPrefix;
      _handler.namespaceAfterStartElement(prefix, uriAttr);
View Full Code Here

Examples of org.switchyard.config.Configuration.lookupPrefix()

            requires.append(" ");
            String ns = req.getNamespaceURI();
            if (XMLConstants.DEFAULT_NS_PREFIX.equals(ns)) {
                requires.append(req.getLocalPart());
            } else {
                String pfx = config.lookupPrefix(ns);
                if (pfx != null) {
                    requires.append(pfx + ":" + req.getLocalPart());
                } else {
                    // SCA cvc-datatype-valid.1.2.1 XSD doesn't allow for {namespaceURI}localPart format
                    //requires.append(req.toString());
View Full Code Here

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

        assertEquals("Response should be : Hello TestSOAPInputMessage", expected,
                     DOMUtils.getAllContent(domResMsg.getNode().getFirstChild()).trim());
       
        Element el = (Element)domResMsg.getNode().getFirstChild();
        assertEquals("gmns", el.lookupPrefix("http://apache.org/hello_world_soap_http/types"));
        assertEquals("http://apache.org/hello_world_soap_http/types",
                     el.lookupNamespaceURI("gmns"));

        // Test invoke oneway
        InputStream is1 = getClass().getResourceAsStream("resources/GreetMeDocLiteralReq1.xml");
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.