users@jaxb.java.net

Re: equivalent of XMLBeans XMLObject interface

From: Mark Hansen <mark_at_javector.com>
Date: Tue, 25 Oct 2005 08:33:08 -0400

newDomNode() - to get an instance of the XML as a DOM
newInputStream() - to get it as a stream
xmlText() - to get it as a String
save(ContentHandler ch, LexicalHandler hl) - to run the instance through
SAX handlers

Dmitri Colebatch wrote:
> What are the methods on this interface that you'd want to use?
>
> On 25/10/05, Mark Hansen <mark_at_javector.com> wrote:
>
>>I've got an XMLBeans application that I'm considering porting to JAXB
>>2.0. However, I use the XmlObject interface extensively in my
>>application. I use it at the base representation of an XML "thingy" -
>>so I can pass around a generic XML object.
>>
>>I don't want to use something like org.w3c.dom.Node - because that
>>implies a DOM implementation, which I don't want. I don't want to be
>>tied to any underlying implementation - that is the beauty of XmlObject
>>in XmlBeans. Its got methods like getAsDOM() ... etc.
>>
>>Any ideas?
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
>>For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>