Class XmlUtils


  • public class XmlUtils
    extends Object
    • Constructor Detail

      • XmlUtils

        public XmlUtils()
    • 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 string
        attributeNames - list of attributes to remove
        Returns:
        filtered xml