Ticket #239 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

ScriptBuilder gets FileNotFound .../incident_script.dtd when saving Scenario

Reported by: jdalbey Owned by: jdalbey
Priority: Low Milestone:
Component: ScriptBuilder Model Version:
Severity: Minor Keywords:
Cc:

Description

It seems that the recently added Prettyprint code wants to validate the XML before writing as it seems to look for the external DTD file named in the XML. But if the ScriptBuilder is launched from a folder that doesn't have the DTD, it causes a FileNotFound.
One easy solution is to just catch this error and ignore it (assuming we have validated the XML ourselves).

Change History

comment:1 Changed 6 years ago by jdalbey

  • Status changed from new to closed
  • Resolution set to fixed

Solved this by performing the prettyprint without the first two lines of xml (header and externalDTD), then prepending these two lines to the formatted xml. Fixed in r206.

Note: See TracTickets for help on using tickets.