|
Just a little question/suggestion to the Castor Design Team.
Would it be better for the marshal and unmarshal methods to take a javax.xml.transform.Source (or javax.xml.transform.Result) parameter instead of offering an overloaded method for each possible input/output type?
Sun’s xml specs require Source/Result implementations for Streams, Writers, DOM and Sax trees.
Using Source/Result for marshal/unmarshal would make the Castor API a lot more generic and flexible.
Please let me know your opinion. Bernie |
