Tika XML File ExtractingTo extract xml file, Tika provides XMLParser class. This class is used to extract content and metadata from xml file. It is located into org.apache.tika.parser.xml package. This class contains constructor and methods that are tabled below. Tika XMLParser Constructor
Tika XMLParser Methods
Tika XML File Extracting ExampleIn this example, we are extracting content and metadata from a xml file. See the example. // web.xml Our XML file. Output: Document Content: default org.apache.catalina.servlets.DefaultServlet debug 0 listings false 1 Document Metadata: Content-Type: application/xml
Next TopicTika Extracting MS Words File
|