Class XmlRootExtractor


  • public class XmlRootExtractor
    extends Object
    Utility class that uses a SAXParser to determine the namespace URI and local name of the root element of an XML file.
    Since:
    Apache Tika 0.4
    • Constructor Detail

      • XmlRootExtractor

        public XmlRootExtractor()
    • Method Detail

      • extractRootElement

        public QName extractRootElement​(byte[] data)
      • extractRootElement

        public QName extractRootElement​(InputStream stream)
        Since:
        Apache Tika 0.9