: Refactor XMLWriter startTag to allow arbitrary attributes to be written ... : There are certain cases in which a user would like to write arbitrary : attributes as part of the XML output for a field tag. Case in point: I'd
...i think here may be a disconnect here between some of the goals you are describing and the purpose of XMLWriter. XMLWriter was originally created to be a wrapper arround a java.io.Writer that had convinent heper methods for generating a specific XML response format (ie: wt=xml) back before Solr even supported multiple output types. The API was never really designed to be useful for generating XML response data cosisting of alternate XML structures. Perhaps instead of making API additions/generalizations to XMLWriter, we should approach the problem differnelty and think about what a good reusable general pupose XML generation toolkit that could be used by custom response writers should look like, and then implement that -- refactoring the existing XMLWriter class to use/extend this new class where possible? -Hoss