[ 
https://issues.apache.org/jira/browse/DAFFODIL-2541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olabusayo Kilo reassigned DAFFODIL-2541:
----------------------------------------

    Assignee: Olabusayo Kilo

> DaffodilXMLLoader - eliminate error handler and return diagnostics
> ------------------------------------------------------------------
>
>                 Key: DAFFODIL-2541
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2541
>             Project: Daffodil
>          Issue Type: Improvement
>          Components: Clean Ups, Diagnostics
>    Affects Versions: 3.1.0
>            Reporter: Mike Beckerle
>            Assignee: Olabusayo Kilo
>            Priority: Major
>
> There is a lot of complex code in Daffodil to deal with parsing DFDL Schemas 
> as XML, parsing XML docs such as TDML files etc.
> The complexity to some degree is caused by the way SAX parsers report errors, 
> which is by side-effect calls to an error handler object.
> Daffodil is largely functional programming, and this side-effect style just 
> has to be worked around everyplace we load/validate XML.
> The DaffodilXMLLoader really should be a function that returns type:
> {code:java}
> (Option[Elem],Seq[SAXParseException]){code}
> A standard call can then also convert these SAXParseException into SDE/SDW 
> for use from the schema compiler.
> The TDML Runner loading of data files and such wants to treat the 
> errors/warnings differently, so that's why the DaffodilXMLLoader cannot 
> always convert to SDE/SDW objects uniformly.
> This would clean up the code substantially.
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to