Package com.eviware.soapui.support

Examples of com.eviware.soapui.support.XmlHolder


  }

  private Node[] collectNodesToValidate(String xmlContent) throws AssertionException {
    Node[] nodes = null;
    try {
      XmlHolder xmlHolder = new XmlHolder(xmlContent);
      if (partialValidation) {
        if (StringUtils.hasContent(rootElementXPath)) {
          SoapUI.log.debug("Root XPath is: " + rootElementXPath);
          nodes = xmlHolder.getDomNodes(rootElementXPath);
        } else {
          AssertionError error = new AssertionError("XPath for validation root element is missing");
          throw new AssertionException(error);
        }
      } else {
        XmlObject xmlObject = xmlHolder.getXmlObject();
        nodes = new Node[1];
        nodes[0] = xmlObject.getDomNode();
      }
    } catch (XmlException e) {
      AssertionError error = new AssertionError(e.getError());
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.XmlHolder

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.