Ticket #215 (assigned enhancement)

Opened 1 year ago

Last modified 1 year ago

Add circuit xml validation to the loader

Reported by: jimcollins Owned by: scorfield
Type: enhancement Priority: normal
Milestone: Fusebox 5.6 Component: Miscellaneous
Version: 5.5 Severity: normal
Keywords: Cc:

Description

Currently the loader just tries to do ParseXML() on the circuit file. If the circuit file isn't valid it throws an unhelpful error of "A problem was encountered while reading the #fb_.fuseboxXMLfile# file."

If XMLValidate was run first, you would get a much more helpful error like:
"[Fatal Error] :13:9: The element type "fuseaction" must be terminated by the matching end-tag "</fuseaction>" giving you the exact error and line number where the error occured.
I'll be glad to add this if someone wants.

Attachments

Change History

Changed 1 year ago by scorfield

  • owner changed from sean@corfield.org to scorfield
  • status changed from new to assigned

XmlValidate?() isn't available on all the platforms that Fusebox supports, however, as an option set in index.cfm, this would be a nice enhancement (it can't be set in fusebox.xml because, well, we haven't parsed the file by the time we need to decide whether to run the validator :)

Changed 1 year ago by scorfield

  • milestone changed from Fusebox 5.5 to Fusebox 5.6

Defer to 5.6.

Note: See TracTickets for help on using tickets.