test_class.declarator: logger = LoggerFactory.getLogger(XmlUtilsTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger logger = LoggerFactory.getLogger(XmlUtilsTest.class);
test_class.type: Logger
test_class.var_name: logger
test_class.declarator: ACTUAL = "<env:Envelope xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\"><env:Header/><env:Body xmlns=\"http://www.intuit.com/iep/ServiceUsage/IntuitServiceUsageABO/V1\"><QueryUsageBalanceResponse xmlns=\"http://www.intuit.com/iep/ServiceUsage/IntuitServiceUsageABO/V1\"><Balance/><Result><Success/><Error><Category>DAT</Category><Code>DAT_USAGE_1003</Code><Description>Invalid Request: Invalid Input criteria: No asset found for license/eoc (630289335971198/855939).</Description><Source>SIEBEL</Source></Error></Result></QueryUsageBalanceResponse></env:Body></env:Envelope>"
test_class.modifier: private final
test_class.original_string: private final String ACTUAL = "<env:Envelope xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\"><env:Header/><env:Body xmlns=\"http://www.intuit.com/iep/ServiceUsage/IntuitServiceUsageABO/V1\"><QueryUsageBalanceResponse xmlns=\"http://www.intuit.com/iep/ServiceUsage/IntuitServiceUsageABO/V1\"><Balance/><Result><Success/><Error><Category>DAT</Category><Code>DAT_USAGE_1003</Code><Description>Invalid Request: Invalid Input criteria: No asset found for license/eoc (630289335971198/855939).</Description><Source>SIEBEL</Source></Error></Result></QueryUsageBalanceResponse></env:Body></env:Envelope>";
test_class.type: String
test_class.var_name: ACTUAL
test_class.declarator: TEACHERS_XML = "<teachers>\n"
              + "	<teacher department=\"science\" id=\"309\">\n"
              + "		<subject>math</subject>\n"
              + "		<subject>physics</subject>\n"
              + "	</teacher>\n"
              + "	<teacher department=\"arts\" id=\"310\">\n"
              + "		<subject>political education</subject>\n"
              + "		<subject>english</subject>\n"
              + "	</teacher>\n"
              + "</teachers>"
test_class.modifier: public final static
test_class.original_string: public final static String TEACHERS_XML = "<teachers>\n"
              + "	<teacher department=\"science\" id=\"309\">\n"
              + "		<subject>math</subject>\n"
              + "		<subject>physics</subject>\n"
              + "	</teacher>\n"
              + "	<teacher department=\"arts\" id=\"310\">\n"
              + "		<subject>political education</subject>\n"
              + "		<subject>english</subject>\n"
              + "	</teacher>\n"
              + "</teachers>";
test_class.type: String
test_class.var_name: TEACHERS_XML
test_class.file: karate-core/src/test/java/com/intuit/karate/XmlUtilsTest.java
test_class.identifier: XmlUtilsTest
test_case.body: @Test
      public void testCreateElement() {
          Node node = XmlUtils.createElement(getDocument(), "foo", "bar", null);
          String result = XmlUtils.toString(node);
          assertEquals(result, "<foo>bar</foo>");
      }
test_case.class_method_signature: XmlUtilsTest.testCreateElement()
test_case.full_signature: @Test public void testCreateElement()
test_case.identifier: testCreateElement
test_case.invocations: createElement getDocument toString assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateElement()
focal_class.file: karate-core/src/main/java/com/intuit/karate/XmlUtils.java
focal_class.identifier: XmlUtils
focal_class.class_method_signature: XmlUtils.XmlUtils()
focal_class.full_signature: private  XmlUtils()
focal_class.identifier: XmlUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  XmlUtils()
focal_class.class_method_signature: XmlUtils.toString(Node node)
focal_class.full_signature: public static String toString(Node node)
focal_class.identifier: toString
focal_class.modifiers: public static
focal_class.parameters: (Node node)
focal_class.return: String
focal_class.signature: String toString(Node node)
focal_class.class_method_signature: XmlUtils.toString(Node node, boolean pretty)
focal_class.full_signature: public static String toString(Node node, boolean pretty)
focal_class.identifier: toString
focal_class.modifiers: public static
focal_class.parameters: (Node node, boolean pretty)
focal_class.return: String
focal_class.signature: String toString(Node node, boolean pretty)
focal_class.class_method_signature: XmlUtils.trimWhiteSpace(Node node)
focal_class.full_signature: public static void trimWhiteSpace(Node node)
focal_class.identifier: trimWhiteSpace
focal_class.modifiers: public static
focal_class.parameters: (Node node)
focal_class.return: void
focal_class.signature: void trimWhiteSpace(Node node)
focal_class.class_method_signature: XmlUtils.toXmlDoc(String xml)
focal_class.full_signature: public static Document toXmlDoc(String xml)
focal_class.identifier: toXmlDoc
focal_class.modifiers: public static
focal_class.parameters: (String xml)
focal_class.return: Document
focal_class.signature: Document toXmlDoc(String xml)
focal_class.class_method_signature: XmlUtils.compile(String path)
focal_class.full_signature: private static XPathExpression compile(String path)
focal_class.identifier: compile
focal_class.modifiers: private static
focal_class.parameters: (String path)
focal_class.return: XPathExpression
focal_class.signature: XPathExpression compile(String path)
focal_class.class_method_signature: XmlUtils.getNodeListByPath(Node node, String path)
focal_class.full_signature: public static NodeList getNodeListByPath(Node node, String path)
focal_class.identifier: getNodeListByPath
focal_class.modifiers: public static
focal_class.parameters: (Node node, String path)
focal_class.return: NodeList
focal_class.signature: NodeList getNodeListByPath(Node node, String path)
focal_class.class_method_signature: XmlUtils.stripNameSpacePrefixes(String path)
focal_class.full_signature: public static String stripNameSpacePrefixes(String path)
focal_class.identifier: stripNameSpacePrefixes
focal_class.modifiers: public static
focal_class.parameters: (String path)
focal_class.return: String
focal_class.signature: String stripNameSpacePrefixes(String path)
focal_class.class_method_signature: XmlUtils.getNodeByPath(Node node, String path, boolean create)
focal_class.full_signature: public static Node getNodeByPath(Node node, String path, boolean create)
focal_class.identifier: getNodeByPath
focal_class.modifiers: public static
focal_class.parameters: (Node node, String path, boolean create)
focal_class.return: Node
focal_class.signature: Node getNodeByPath(Node node, String path, boolean create)
focal_class.class_method_signature: XmlUtils.createNodeByPath(Document doc, String path)
focal_class.full_signature: public static Node createNodeByPath(Document doc, String path)
focal_class.identifier: createNodeByPath
focal_class.modifiers: public static
focal_class.parameters: (Document doc, String path)
focal_class.return: Node
focal_class.signature: Node createNodeByPath(Document doc, String path)
focal_class.class_method_signature: XmlUtils.getTextValueByPath(Node node, String path)
focal_class.full_signature: public static String getTextValueByPath(Node node, String path)
focal_class.identifier: getTextValueByPath
focal_class.modifiers: public static
focal_class.parameters: (Node node, String path)
focal_class.return: String
focal_class.signature: String getTextValueByPath(Node node, String path)
focal_class.class_method_signature: XmlUtils.setByPath(Node doc, String path, String value)
focal_class.full_signature: public static void setByPath(Node doc, String path, String value)
focal_class.identifier: setByPath
focal_class.modifiers: public static
focal_class.parameters: (Node doc, String path, String value)
focal_class.return: void
focal_class.signature: void setByPath(Node doc, String path, String value)
focal_class.class_method_signature: XmlUtils.removeByPath(Document doc, String path)
focal_class.full_signature: public static void removeByPath(Document doc, String path)
focal_class.identifier: removeByPath
focal_class.modifiers: public static
focal_class.parameters: (Document doc, String path)
focal_class.return: void
focal_class.signature: void removeByPath(Document doc, String path)
focal_class.class_method_signature: XmlUtils.setByPath(Document doc, String path, Node in)
focal_class.full_signature: public static void setByPath(Document doc, String path, Node in)
focal_class.identifier: setByPath
focal_class.modifiers: public static
focal_class.parameters: (Document doc, String path, Node in)
focal_class.return: void
focal_class.signature: void setByPath(Document doc, String path, Node in)
focal_class.class_method_signature: XmlUtils.toJsonDoc(Node node)
focal_class.full_signature: public static DocumentContext toJsonDoc(Node node)
focal_class.identifier: toJsonDoc
focal_class.modifiers: public static
focal_class.parameters: (Node node)
focal_class.return: DocumentContext
focal_class.signature: DocumentContext toJsonDoc(Node node)
focal_class.class_method_signature: XmlUtils.getAttributes(Node node)
focal_class.full_signature: private static Map<String, Object> getAttributes(Node node)
focal_class.identifier: getAttributes
focal_class.modifiers: private static
focal_class.parameters: (Node node)
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> getAttributes(Node node)
focal_class.class_method_signature: XmlUtils.getChildElementCount(Node node)
focal_class.full_signature: public static int getChildElementCount(Node node)
focal_class.identifier: getChildElementCount
focal_class.modifiers: public static
focal_class.parameters: (Node node)
focal_class.return: int
focal_class.signature: int getChildElementCount(Node node)
focal_class.class_method_signature: XmlUtils.getElementAsObject(Node node, boolean removeNamespace)
focal_class.full_signature: private static Object getElementAsObject(Node node, boolean removeNamespace)
focal_class.identifier: getElementAsObject
focal_class.modifiers: private static
focal_class.parameters: (Node node, boolean removeNamespace)
focal_class.return: Object
focal_class.signature: Object getElementAsObject(Node node, boolean removeNamespace)
focal_class.class_method_signature: XmlUtils.toObject(Node node)
focal_class.full_signature: public static Object toObject(Node node)
focal_class.identifier: toObject
focal_class.modifiers: public static
focal_class.parameters: (Node node)
focal_class.return: Object
focal_class.signature: Object toObject(Node node)
focal_class.class_method_signature: XmlUtils.toObject(Node node, boolean removeNamespace)
focal_class.full_signature: public static Object toObject(Node node, boolean removeNamespace)
focal_class.identifier: toObject
focal_class.modifiers: public static
focal_class.parameters: (Node node, boolean removeNamespace)
focal_class.return: Object
focal_class.signature: Object toObject(Node node, boolean removeNamespace)
focal_class.class_method_signature: XmlUtils.fromMap(Map<String, Object> map)
focal_class.full_signature: public static Document fromMap(Map<String, Object> map)
focal_class.identifier: fromMap
focal_class.modifiers: public static
focal_class.parameters: (Map<String, Object> map)
focal_class.return: Document
focal_class.signature: Document fromMap(Map<String, Object> map)
focal_class.class_method_signature: XmlUtils.fromObject(String name, Object o)
focal_class.full_signature: public static Document fromObject(String name, Object o)
focal_class.identifier: fromObject
focal_class.modifiers: public static
focal_class.parameters: (String name, Object o)
focal_class.return: Document
focal_class.signature: Document fromObject(String name, Object o)
focal_class.class_method_signature: XmlUtils.fromObject(Document doc, String name, Object o)
focal_class.full_signature: public static List<Element> fromObject(Document doc, String name, Object o)
focal_class.identifier: fromObject
focal_class.modifiers: public static
focal_class.parameters: (Document doc, String name, Object o)
focal_class.return: List<Element>
focal_class.signature: List<Element> fromObject(Document doc, String name, Object o)
focal_class.class_method_signature: XmlUtils.newDocument()
focal_class.full_signature: public static Document newDocument()
focal_class.identifier: newDocument
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Document
focal_class.signature: Document newDocument()
focal_class.class_method_signature: XmlUtils.addAttributes(Element element, Map<String, Object> map)
focal_class.full_signature: public static void addAttributes(Element element, Map<String, Object> map)
focal_class.identifier: addAttributes
focal_class.modifiers: public static
focal_class.parameters: (Element element, Map<String, Object> map)
focal_class.return: void
focal_class.signature: void addAttributes(Element element, Map<String, Object> map)
focal_class.class_method_signature: XmlUtils.createElement(Node node, String name, String value, Map<String, Object> attributes)
focal_class.full_signature: public static Element createElement(Node node, String name, String value, Map<String, Object> attributes)
focal_class.identifier: createElement
focal_class.modifiers: public static
focal_class.parameters: (Node node, String name, String value, Map<String, Object> attributes)
focal_class.return: Element
focal_class.signature: Element createElement(Node node, String name, String value, Map<String, Object> attributes)
focal_class.class_method_signature: XmlUtils.toNewDocument(Node in)
focal_class.full_signature: public static Document toNewDocument(Node in)
focal_class.identifier: toNewDocument
focal_class.modifiers: public static
focal_class.parameters: (Node in)
focal_class.return: Document
focal_class.signature: Document toNewDocument(Node in)
focal_class.class_method_signature: XmlUtils.toXmlDoc(Object o)
focal_class.full_signature: public static Document toXmlDoc(Object o)
focal_class.identifier: toXmlDoc
focal_class.modifiers: public static
focal_class.parameters: (Object o)
focal_class.return: Document
focal_class.signature: Document toXmlDoc(Object o)
focal_class.class_method_signature: XmlUtils.toXml(Object o)
focal_class.full_signature: public static String toXml(Object o)
focal_class.identifier: toXml
focal_class.modifiers: public static
focal_class.parameters: (Object o)
focal_class.return: String
focal_class.signature: String toXml(Object o)
focal_method.body: public static Element createElement(Node node, String name, String value, Map<String, Object> attributes) {
          Document doc = node.getNodeType() == Node.DOCUMENT_NODE ? (Document) node : node.getOwnerDocument();
          Element element = doc.createElement(name);
          element.setTextContent(value);
          addAttributes(element, attributes);
          return element;
      }
focal_method.class_method_signature: XmlUtils.createElement(Node node, String name, String value, Map<String, Object> attributes)
focal_method.full_signature: public static Element createElement(Node node, String name, String value, Map<String, Object> attributes)
focal_method.identifier: createElement
focal_method.invocations: getNodeType getOwnerDocument createElement setTextContent addAttributes
focal_method.modifiers: public static
focal_method.parameters: (Node node, String name, String value, Map<String, Object> attributes)
focal_method.return: Element
focal_method.signature: Element createElement(Node node, String name, String value, Map<String, Object> attributes)