Parse XML files without xml declaration
First off: Awesome project. Please keep going and get it merged into phobos!
In the wild its quite common to have files which use xml syntax but don't have a xml declaration:
It should be easy to parse such files. My current workaround is to manually stick a xml declaration to the front of the buffer before parsing it.
Thank you for your appreciation. I'm currently very busy, but I'm trying to find some time to go ahead with this project, because it really deserves to be pushed.
You should be able to set a custom error handler when creating the cursor. Inside this handler, you can decide to ignore errors triggered by missing XML declarations, while throwing an exception (or doing whatever you want) in case of any other problem.
This issue was moved to dlang-community/experimental.xml#12