| java.lang.Object com.eviware.soapui.support.xml.XmlUtils
XmlUtils | final public class XmlUtils (Code) | | General XML-related utilities
|
Method Summary | |
public static Element | addChildElement(Element element, String name, String text) | public static Node | createNodeFromPath(Element modelElement, String path) | public static String | createXPath(Node node) | public static String | createXPath(Node node, boolean anonymous, boolean selectText, XPathModifier modifier) | public static String | declareXPathNamespaces(String xmlString) | public static String | declareXPathNamespaces(WsdlInterface iface) | public static String | declareXPathNamespaces(XmlObject xmlObject) | public static void | dumpParserErrors(XmlObject xmlObject) | public static String | entitize(String xml) | public static String | extractNamespaces(String xpath) | public static String | getChildElementText(Element elm, String name) | public static String | getChildElementText(Element elm, String name, String defaultValue) | public static NodeList | getChildElements(Element elm) | public static int | getElementIndex(Node element) | public static String | getElementPath(Element element) | public static String | getElementText(Element elm) | public static Element | getFirstChildElement(Element elm) | public static Element | getFirstChildElement(Element elm, String name) | public static Element | getFirstChildElementNS(Element elm, String tns, String localName) | public static String | getFragmentText(DocumentFragment elm) | public static String | getNodeValue(Node node) | public static QName | getQName(Node node) | public static Document | parse(InputStream in) | public static Document | parse(String fileName) | public static Document | parse(InputSource inputSource) | public static Document | parseXml(String xmlString) | public static synchronized String | prettyPrintXml(String xml) | public static synchronized String | prettyPrintXml(XmlObject xml) | public static String | removeXPathNamespaceDeclarations(String xpath) | public static boolean | seemsToBeXml(String str) | public static void | serialize(Document dom, Writer writer) | public static void | serialize(Element elm, Writer writer) | public static void | serializePretty(Document document) | public static void | serializePretty(Document dom, Writer writer) | public static void | serializePretty(XmlObject xmlObject, Writer writer) | public static void | setChildElementText(Element element, String name, String text) | public static void | setElementText(Element elm, String text) | public static boolean | setNodeValue(Node domNode, String string) | public static String | setXPathContent(String emptyResponse, String string, String actor) | public static String | stripWhitespaces(String content) | public static String | transferValues(String source, String dest) |
declareXPathNamespaces | public static String declareXPathNamespaces(String xmlString) throws XmlException(Code) | | |
declareXPathNamespaces | public static String declareXPathNamespaces(XmlObject xmlObject)(Code) | | |
dumpParserErrors | public static void dumpParserErrors(XmlObject xmlObject)(Code) | | |
getElementIndex | public static int getElementIndex(Node element)(Code) | | Gets the index of the specified element amongst elements with the same name
Parameters: element - the element to get for the index of the element, will be >= 1 |
getElementPath | public static String getElementPath(Element element)(Code) | | Returns absolute xpath for specified element, ignores namespaces
Parameters: elm - the element to create for the elements path in its containing document |
prettyPrintXml | public static synchronized String prettyPrintXml(XmlObject xml)(Code) | | |
removeXPathNamespaceDeclarations | public static String removeXPathNamespaceDeclarations(String xpath)(Code) | | |
seemsToBeXml | public static boolean seemsToBeXml(String str)(Code) | | |
serializePretty | public static void serializePretty(Document document)(Code) | | |
setNodeValue | public static boolean setNodeValue(Node domNode, String string)(Code) | | |
|
|