Examples of NamespaceContext

All get*(*) methods operate in the current scope for Namespace URI and prefix resolution.

Note that a Namespace URI can be bound to multiple prefixes in the current scope. This can occur when multiple XMLConstants.XMLNS_ATTRIBUTE ("xmlns") Namespace declarations occur in the same Start-Tag and refer to the same Namespace URI. e.g.

 <element xmlns:prefix1="http://Namespace-name-URI" xmlns:prefix2="http://Namespace-name-URI"> 

This can also occur when the same Namespace URI is used in multiple XMLConstants.XMLNS_ATTRIBUTE ("xmlns") Namespace declarations in the logical parent element hierarchy. e.g.
 <parent xmlns:prefix1="http://Namespace-name-URI"> <child xmlns:prefix2="http://Namespace-name-URI"> ... </child> </parent> 

A prefix can only be bound to a single Namespace URI in the current scope.

@author JAXP Java Community Process @author JAXP Reference Implementation @version 1.0.proposed @see javax.xml.XMLConstants declarations of common XML values @see Namespaces in XML @see Namespaces in XML Errata @see XML Schema Part2: Datatypes
  • net.sf.toxicity.util.NamespaceContext
    @author Stefan Podkowinski
  • org.apache.commons.jxpath.ri.axes.NamespaceContext
    EvalContext that walks the "namespace::" axis. @author Dmitri Plotnikov @version $Revision: 1.7 $ $Date: 2003/03/11 00:59:20 $
  • org.apache.ws.util.xml.NamespaceContext
    Interface for read only XML Namespace context processing. @author Ian Springer (ian DOT springer AT hp DOT com)
  • org.apache.xerces.xni.NamespaceContext
    Represents an interface to query namespace information. @author Andy Clark, IBM @version $Id: NamespaceContext.java,v 1.3 2001/12/12 22:33:47 elena Exp $
  • org.apache.xmlbeans.impl.values.NamespaceContext
  • org.custommonkey.xmlunit.NamespaceContext
    Interface used by XpathEngine in order to map prefixes to namespace URIs.

    This is modelled after javax.xml.namespace.NamespaceContext but reduced to our needs.

  • org.jaxen.NamespaceContext
    Resolves namespace prefixes to namespace URIs.

    The prefixes used within an XPath expression are independant of those used within any target document. When evaluating an XPath against a document, only the resolved namespace URIs are compared, not their prefixes.

    A NamespaceContext is responsible for translating prefixes as they appear in XPath expressions into URIs for comparison. A document's prefixes are resolved internal to the document based upon its own namespace nodes.

    @see BaseXPath @see Navigator#getElementNamespaceUri @see Navigator#getAttributeNamespaceUri @author bob mcwhirter
  • org.wso2.carbon.humantask.utils.NamespaceContext

  • Examples of org.apache.xerces.xni.NamespaceContext

         * [namespace attributes], except for any representing a declaration of the
         * form xmlns="", which does not declare a namespace but rather undeclares
         * the default namespace
         */
        private void printinScopeNamespaces() {
            NamespaceContext namespaceContext = fNamespaceBinder.getNamespaceContext();
            NamespaceContext temp;
            String prefix;

            printIndentTag("<inScopeNamespaces>");
            while (namespaceContext!=null) {
                temp = namespaceContext.getParentContext();
    View Full Code Here

    Examples of org.apache.xmlbeans.impl.values.NamespaceContext

                if (type.getEnumerationValues() != null)
                {
                    // Lists which contain QNames will need a resolver

                    NamespaceContext.push(
                        new NamespaceContext( event ) );

                    try
                    {
                        XmlObject listValue = ( (SchemaTypeImpl) type).newValidatingValue( value );
                    }
    View Full Code Here

    Examples of org.custommonkey.xmlunit.NamespaceContext

        protected void setUpNSContext() {
            Map<String, String> m = new HashMap<String, String>();
            m.put("ms", "http://services.samples");
            m.put("ns", "http://services.samples");
            NamespaceContext nsCtx = new SimpleNamespaceContext(m);
            XMLUnit.setXpathNamespaceContext(nsCtx);
        }
    View Full Code Here

    Examples of org.custommonkey.xmlunit.NamespaceContext


            Map<String,String> m = new HashMap<String,String>();
            m.put("sv", "http://www.jcp.org/jcr/sv/1.0");

            NamespaceContext ctx = new SimpleNamespaceContext(m);
            XMLUnit.setXpathNamespaceContext(ctx);


            final NameValuePairList props = new NameValuePairList();
            props.add("a", "");
    View Full Code Here

    Examples of org.jaxen.NamespaceContext

        }
       
        if (xmlNamespaceMap != null && xmlNamespaceMap.size() > 0)
        {
          if (context == null) {
            context = new NamespaceContext() {
             
              public String translateNamespacePrefixToUri(String prefix) {
                return xmlNamespaceMap.get(prefix);
              }
            };
    View Full Code Here

    Examples of org.wso2.carbon.humantask.utils.NamespaceContext

            if (taskWSDL == null) {
                throw new NullPointerException("Cannot find WSDL definition for task: " + task.getName());
            }
            setWSDL(taskWSDL);

            NamespaceContext nsContext = new NamespaceContext();
            populateNamespace(task.getDomNode().getNodeType() == Node.ELEMENT_NODE ?
                    (Element) task.getDomNode() : null, nsContext);
            setNamespaceContext(nsContext);

            PortType portType;
    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.