On Nov 20, 2007 10:53 AM, James M Snell <[EMAIL PROTECTED]> wrote:
> This is good, but atom:feed isn't the only place we need to have
> xml:lang and xml:base support. With the writeAttribute method, we can
> have writeLanguage() and writeBase() methods that set those attributes
> wherever they're needed.
>
> public StreamWriter writeLanguage(String lang) {
> return writeAttribute(Constants.LANG, lang);
> }
>
> public StreamWriter writeBase(IRI base) {
> return writeBase(base.toString());
> }
>
> public StreamWriter writeBase(String base) {
> return writeAttribute(Constants.BASE, base);
> }
>
> I can add these if you'd like.
sure thing. i was scratching a localized itch, but this is a superior idea.
fyi, i'm refactoring Cosmo to use streamed writing. it's requiring a
lot of changes, but it's clearly a better direction.