Package com.microsoft.azure.maven.utils
Class XmlUtils
- java.lang.Object
-
- com.microsoft.azure.maven.utils.XmlUtils
-
public class XmlUtils extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateXmlUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddDomWithKeyValue(org.dom4j.Element node, String key, Object value)static voidaddDomWithValueList(org.dom4j.Element element, String attribute, String subAttribute, List<String> values)static StringgetChildValue(org.dom4j.Element element, String attribute)static StringprettyPrintElementNoNamespace(org.dom4j.Element node)static voidremoveAllNamespaces(org.dom4j.Element ele)private static voidremoveNamespaces(List l)Recursively removes the namespace of the list and all its children: sets to Namespace.NO_NAMESPACEprivate static voidsetNamespace(org.dom4j.Element element, org.dom4j.Namespace nameSpace)private static voidsetNamespaces(List l, org.dom4j.Namespace ns)Recursively sets the namespace of the List and all children if the current namespace is matchprivate static voidsetNamespaces(org.dom4j.Element elem, org.dom4j.Namespace ns)Recursively sets the namespace of the element and all its children.static voidtrimTextBeforeEnd(org.dom4j.Element parent, org.dom4j.Node target)
-
-
-
Method Detail
-
prettyPrintElementNoNamespace
public static String prettyPrintElementNoNamespace(org.dom4j.Element node)
-
trimTextBeforeEnd
public static void trimTextBeforeEnd(org.dom4j.Element parent, org.dom4j.Node target)
-
setNamespace
private static void setNamespace(org.dom4j.Element element, org.dom4j.Namespace nameSpace)
-
addDomWithValueList
public static void addDomWithValueList(org.dom4j.Element element, String attribute, String subAttribute, List<String> values)
-
addDomWithKeyValue
public static void addDomWithKeyValue(org.dom4j.Element node, String key, Object value)
-
removeAllNamespaces
public static void removeAllNamespaces(org.dom4j.Element ele)
-
setNamespaces
private static void setNamespaces(List l, org.dom4j.Namespace ns)
Recursively sets the namespace of the List and all children if the current namespace is match
-
removeNamespaces
private static void removeNamespaces(List l)
Recursively removes the namespace of the list and all its children: sets to Namespace.NO_NAMESPACE
-
setNamespaces
private static void setNamespaces(org.dom4j.Element elem, org.dom4j.Namespace ns)Recursively sets the namespace of the element and all its children.
-
-