Search code examples
jarxml-parsingrftibm-rational

RFT- What JAR file do i need to use 'import javax.xml.parsers.DocumentBuilder'


On my scenario, I'm trying to retrieve the information of an applicant from an XML file. I'm trying to retrieve the data of certain tags within the xml file and insert the string to an CSV file to use it as the datapool.

Im trying to use the following Imports

import javax.xml.parsers.DocumentBuilder;  
import javaxxml.parsers.DocumentBuilderFactory;  
import javax.xml.parsers.ParserConfigurationException;

When i try to use the above import classes i get an error (The import cannot be resolved)

I have added the JAR file JDOM to my project , but that didn't work.

I was using "java" instead of "javax" i'm no longer getting the error


Solution

  • findjar.com tells me it's in rt.jar (as of Java 6)

    rt.jar contains all the RunTime classes that comprise the Java SE platform’s core API’s. In simple terms this is the jar which contains classes like java.lang.String, java.io package etc.