Hello experts,
I am trying to parse the datacapture.cfg using CSSDK. I am using the following code for parsing the file
CSSimpleFile simplefile =(CSSimpleFile)client.getFile(file.getVPath());
InputStream is = simplefile.getInputStream(true);
DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance();
DocumentBuilder bld = fac.newDocumentBuilder();
Document docu = (Document)bld.parse(new InputSource(is));
The parse statement is throwing the following error
"The processing instruction target matching "[xX][mM][lL]" is not allowed."
I have checked the datacapture.cfg and there are no stray/garbbage values in the cfg file.Can you please let me know if there is something wrong with the code?
Thank you