Class XMLSample

    • Field Detail

      • SIMPLE

        public static final XMLSample SIMPLE
        A simple XML document without any particular features.
      • LARGE

        public static final XMLSample LARGE
        An XML document that is larger than the input buffer of typical XML parsers.
      • ENTITY_REFERENCE_NESTED

        public static final XMLSample ENTITY_REFERENCE_NESTED
      • DTD_FULL

        public static final XMLSample DTD_FULL
        An XML document that has a document type declaration with a system ID, public ID and internal subset.
    • Method Detail

      • getEncoding

        public final String getEncoding()
      • hasDTD

        public final boolean hasDTD()
      • hasExternalSubset

        public final boolean hasExternalSubset()
      • hasInternalSubset

        public final boolean hasInternalSubset()
      • hasEntityReferences

        public final boolean hasEntityReferences()
      • getDocument

        public final Document getDocument()
      • getMediaType

        protected String getMediaType()