|
Yes, gumbo does not like the xml header at all. The easiest way to deal with it is to remove the xml header line if one exists before using gumbo. We do this inside of Sigil itself and then adjust the line numbers and offsets accordingly if interested in error positions. It is easy to do with regular expressions.
I will play around with your sample plugin. Thanks for coding it up!
|