[sword-devel] We need XML parser

David Burry sword-devel@crosswire.org
Wed, 05 Jun 2002 21:04:37 -0700

The order of attributes is not significant in XML, so your examples should 
be equivalent.  Regardless things shouldn't ever crash even if it did get 
unacceptable data, it should display or log or return an error message and 
go on or quit, which ever makes sense for the situation.  If you want to 
parse XML, best is to use an XML parser library... such as expat or xerxes 
or some other one.


At 05:05 AM 6/6/2002 +0600, Victor Porton wrote:
>Somebody said that XML format of modules is preferable.
>First a question arises: does this imply that two equivalent XML fragments
>(e.g <a x="1" y="2"/> and <a y="2" x="1"/> are equivalent XML despite these
>have different text representation) should be parsed by Sword 
>equivalently? Is
>variant when <a x="1" y="2"/> parses well, but on <a y="2" x="1"/> Sword
>crashes acceptable (with obligation to use in modules only the first 
>Victor Porton (porton@narod.ru)