This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jun 3, 2018, 8:19 AM
4 Posts

SAXParser and DOCTYPE

  • Category: Application Development
  • Platform: Apple Mac OS
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 0

I'm writing some LotusScript code to parse an XML file using the SAXParser.  Up until now it has worked fine on both Windows and Mac.

I have a new XML file I want to parse and the second line of the file is:

<!DOCTYPE dives SYSTEM "http://www.mac-dive.com/macdive_logbook.dtd">

If I leave the line in the file and run it through the SAXParser it kills the Notes client on the Mac.  If I run the code on Windows I get an error message "SAX parser operation failed".

I tried 

        saxParser.InputValidationOption = 0

but it makes no difference.

If I comment out the line:
<!—- DOCTYPE dives SYSTEM "http://www.mac-dive.com/macdive_logbook.dtd" —->

Notes on Mac doesn't crash but I get the same "SAX parser operation failed" message.

Only if I delete the line from the XML file does it work.

I'm not responsible for the XML files and I don't want to have to manually edit them (or even write code to edit them).  Is there a way to tell the parser to ignore the line?

Thanks


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal