Package adams.core
Class XMLUtils
- java.lang.Object
-
- adams.core.XMLUtils
-
public class XMLUtils extends Object
Helper methods around XML.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description XMLUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsecureFactory(DocumentBuilderFactory factory)Sets various features and settings to secure XML parsing.
-
-
-
Method Detail
-
secureFactory
public static void secureFactory(DocumentBuilderFactory factory) throws Exception
Sets various features and settings to secure XML parsing. See: https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#java- Parameters:
factory- the factory instance to secure- Throws:
Exception- if setting of an option fails
-
-