Package org.apache.ws.util.xml.impl

Examples of org.apache.ws.util.xml.impl.DomNamespaceContext


        }
        if ( xpathExpr.getNamespaceContext() == null || !( xpathExpr.getNamespaceContext() instanceof DomNamespaceContext ) )
        {
            throw new QueryEvaluationErrorException( MSG.getMessage( Keys.BAD_XPATH_NAMESPACE_CONTEXT ) );
        }
        DomNamespaceContext domNsContext = (DomNamespaceContext) xpathExpr.getNamespaceContext();
        XObject xResult;
        try
        {
            xResult = XPathAPI.eval( evalContextNode,
                    xpathExpr.getValue(),
                    domNsContext.getContextNode() );
        }
        catch ( Exception e )
        {
            throw new QueryEvaluationErrorException( MSG.getMessage( Keys.XPATH_FAILED, xpathExpr.getValue(),
                    e.getLocalizedMessage() ) );
View Full Code Here


        }
        else
        {
            m_content = XmlBeanUtils.getValue( m_queryExprXBean );
        }
        m_nsContext = new DomNamespaceContext( m_queryExprXBean.newDomNode() );
        if ( LOG.isDebugEnabled() )
        {
            LOG.debug( MSG.getMessage( Keys.QUERY_EXPR, toString() ) );
        }
    }
View Full Code Here

           || !( xpathExpr.getNamespaceContext(  ) instanceof DomNamespaceContext ) )
      {
         throw new QueryEvaluationErrorException( MSG.getMessage( Keys.BAD_XPATH_NAMESPACE_CONTEXT ) );
      }

      DomNamespaceContext domNsContext = (DomNamespaceContext) xpathExpr.getNamespaceContext(  );
      XObject             xResult;
      try
      {
         xResult = XPathAPI.eval( evalContextNode,
                                  xpathExpr.getValue(  ),
                                  domNsContext.getContextNode(  ) );
      }
      catch ( Exception e )
      {
         throw new QueryEvaluationErrorException( MSG.getMessage( Keys.XPATH_FAILED,
                                                                  xpathExpr.getValue(  ),
View Full Code Here

      else
      {
         m_content = XmlBeanUtils.getValue( m_queryExprXBean );
      }

      m_nsContext = new DomNamespaceContext( m_queryExprXBean.newDomNode(  ) );
      if ( LOG.isDebugEnabled(  ) )
      {
         LOG.debug( MSG.getMessage( Keys.QUERY_EXPR,
                                    toString(  ) ) );
      }
View Full Code Here

TOP

Related Classes of org.apache.ws.util.xml.impl.DomNamespaceContext

Copyright © 2018 www.massapicom. 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.