0

Whenever I am running the following command I getting an error given below. Please tell which jar file I need to add to run the command in Matlab.

Command: docBuilder = DocumentBuilderFactory.newInstance();

Error:

Undefined variable "DocumentBuilderFactory" or class "DocumentBuilderFactory.newInstance".

Avijit Dasgupta
  • 2,055
  • 3
  • 22
  • 36

1 Answers1

1

From the comments, the solution is to use the following line instead:

docBuilder = javax.xml.parsers.DocumentBuilderFactory.newInstance();
Luke Woodward
  • 63,336
  • 16
  • 89
  • 104