Hi,
as you can read in previous mails, I am playing with xml parser used in YaST.
Nokogiri looks like the best option due to its relax ng support and its
availability in SLE (used in SLES-HA).
And nokogiri has also one interesting feature and that is relaxed parsing that
tries hard to parse document even when it is malformed[1] ( but you can still
log errors).
Example that nokogiri can parse:
<test>
<not_closed>
<not_closed2>
value
</not_opened>
</test>
which results in something like test -> not_closed -> not_closed2 -> value tree
I check old yast yast parser and it is strict here and return nil and set error.
Question is should we keep old behavior or try to relax it and just logs errors
and warnings? For working profiles nothing changes.
Josef
[1] https://nokogiri.org/tutorials/ensuring_well_formed_markup.html
--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]