Package org.opennms.smoketest.utils
Class XmlUtils
- java.lang.Object
-
- org.opennms.smoketest.utils.XmlUtils
-
public class XmlUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description XmlUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static String
filterAttributesFromXml(String xmlIn, String... attributeNames)
Used to remove a fixed set of known attributes from an XML string.
-
-
-
Method Detail
-
filterAttributesFromXml
protected static String filterAttributesFromXml(String xmlIn, String... attributeNames)
Used to remove a fixed set of known attributes from an XML string. We use this since some of the entity include fields which have no corresponding setters and as a result, cause errors when POSTing to the REST APIs.- Parameters:
xmlIn
- xml stringattributeNames
- list of attributes to remove- Returns:
- filtered xml
-
-