Ticket #239 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.

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.