Class XmlDocumentValidator


  • public class XmlDocumentValidator
    extends Object
    Author:
    Madhav Krishna
    • Constructor Detail

      • XmlDocumentValidator

        public XmlDocumentValidator​(String xmlAsString)
      • XmlDocumentValidator

        public XmlDocumentValidator​(File xmlFilePath)
    • Method Detail

      • getDocument

        public Document getDocument()
      • validatePathPresent

        public void validatePathPresent​(String elementName,
                                        String xmlPath)
      • validateExpectedNRecordsPresent

        public void validateExpectedNRecordsPresent​(String elementName,
                                                    String xmlPath,
                                                    int expectedN)
      • validateAtleastNRecordsPresent

        public void validateAtleastNRecordsPresent​(String elementName,
                                                   String xmlPath,
                                                   int atleastN)
      • validateAtMaxNRecordsPresent

        public void validateAtMaxNRecordsPresent​(String elementName,
                                                 String xmlPath,
                                                 int atMaxN)