[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    RE: compile time generation of XmlElement//Attribute for interface types [Re: XmlObject and XML Info
From:       "Eric Vasilik" <ericvas () bea ! com>
Date:       2004-04-29 16:28:45
Message-ID: 4B2B4C417991364996F035E1EE39E2E1DCE1D9 () uskiex01 ! amer ! bea ! com
[Download RAW message or body]

Yes, I would add a static method somewhere which would allow you to
convert among the various views.

> -----Original Message-----
> From: David Remy
> Sent: Thursday, April 29, 2004 8:51 AM
> To: xmlbeans-dev@xml.apache.org
> Subject: RE: compile time generation of XmlElement//Attribute for
> interface types [Re: XmlObject and XML Infoset
> 
> <snip>
> >> how will you be able to switch between different views i.e. in case
> >> when i have DOM Element how i can find XmlObject view on it? can i
> >> dynamically for an unbound DOM element bound it (convert) to XML
> >> Schema derived Foo type? in other words can i start with DOM
> >> (Infoset?) and rebind parts of it to XmlBeans?
> >
> > Yes, as long as the DOM element is one which I created.  If
> > you want to
> > take, for example, a Xerces DOM element and get an XmlObject
> > on it, you
> > would have to import that element.  However, I will provide ways to
> > convert among the various views with out additional overhead.
> 
> Eric, have you thought about how this conversion between
> the different xmlbean views would look?  Like, say you have a DOM
> Node in hand, how will you get an XmlObject or XmlCursor on it?  Or
> any other combination? I guess it will have to be thru some sort of
> static like Public?  Something like:
> 
> XmlObject getXmlObject(Node node);
> 
> ?
> 
> >
> >>
> >> thanks,
> >>
> >> alek
> >>
> >> --
> 
> -
---------------------------------------------------------------------
> To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic