Hi
I'm using this code (java code) to parse the info.plist file of an iOS project and add or replace some values:
In some cases is working perfectly and parsing the XML, then I can replace values and transform the XML and it works perfectly. But since yesterday, day 7, in some cases, the last line of that sample code is giving me a parsing exception:
This is the start of the infoplist file:
How its possible that sometimes is working and sometimes not since yesterday when it was working for years? how can this be solved?
Thanks
I'm using this code (java code) to parse the info.plist file of an iOS project and add or replace some values:
Code Block DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); File plistFile=new File("/project/SupportingFiles/Info.plist"); Document doc = dBuilder.parse(new BufferedInputStream(new FileInputStream(plistFile)));
In some cases is working perfectly and parsing the XML, then I can replace values and transform the XML and it works perfectly. But since yesterday, day 7, in some cases, the last line of that sample code is giving me a parsing exception:
Code Block SAXParseExceptionpublicId: -//Apple//DTD PLIST 1.0//EN; systemId:http://www.apple.com/DTDs/PropertyList-1.0.dtd; lineNumber: 1; columnNumber: 2; The markup declarations contained or pointed to by the document type declaration must be well-formed.
This is the start of the infoplist file:
Code Block <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0">
How its possible that sometimes is working and sometimes not since yesterday when it was working for years? how can this be solved?
Thanks