Howdy AxHackers,
Feature:
Add a get_dom() method to the Providers to allow custom Provider authors to pass in an XML::LibXML DOM document instance.
Justification: Currently, application-based Provider authors must either:
1) incur the major overhead of calling toString() on their DOMs and returning it via get_strref() to let AxKit reparse it, or
2) brute-force the DOM into pnotes->('dom_tree'), which means that the root, DTD, and stylesheet PIs are not properly evaluated against AxAdd*Processor rules.
Adding get_dom() would cover both cases, and breaks no existing functionality. The only real downside is that get_styles() will need to get a bit more complex to cover the non-textual-XML case.
Thoughts?
-kip