Package app.tozzi.mail.pec.util
Class XMLDocumentUtils
java.lang.Object
app.tozzi.mail.pec.util.XMLDocumentUtils
- Author:
- biagio.tozzi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAttribute(Document doc, String path, String attributeName, boolean nullable) getTextAndAttribute(Document document, String path, String attribute, boolean nullable) static StringgetTextContent(Document document, String path, boolean nullable)
-
Constructor Details
-
XMLDocumentUtils
public XMLDocumentUtils()
-
-
Method Details
-
getAttribute
public static String getAttribute(Document doc, String path, String attributeName, boolean nullable) throws PECParserException - Throws:
PECParserException
-
getTextAndAttribute
public static Map<String,String> getTextAndAttribute(Document document, String path, String attribute, boolean nullable) throws PECParserException - Throws:
PECParserException
-
getTextContent
public static String getTextContent(Document document, String path, boolean nullable) throws PECParserException - Throws:
PECParserException
-