That clarifies it. I did think something similar while I was having a shower this morning; your answer gives it validation now.
Thanks Micheal. Ranjit Michael Glavassevich-3 wrote: > > > Hi Ranjit, > > riyer <[email protected]> wrote on 05/29/2009 01:42:05 AM: > >> Thanks for the quick response Micheal. >> >> Am glad to know that it is possible to construct an XSModel starting from > a >> DOM document, but your answer to my second question makes me wonder if > this >> is dangerous to do, because you said that the XSModel may choose to throw >> away the DOM. I would like to start from the DOM document, construct an >> XSModel and then go back and do a few more things on the same DOM. Can > you >> please confirm if this is safe to do? > > The XSModel doesn't throw away the DOM. It never has a reference to it. > The > DOM is traversed to construct the XSModel, but once we're done we don't > need it anymore so we drop all of our references to it. That's what I > meant > by throw away. The DOM would normally get garbage collected, but if you > still have a reference to it you're free to keep using it. > >> Thanks, >> Ranjit > > Thanks. > > Michael Glavassevich > XML Parser Development > IBM Toronto Lab > E-mail: [email protected] > E-mail: [email protected] > -- View this message in context: http://www.nabble.com/Loading-an-XSModel-from-a-DOM-Document-object-tp23772911p23782626.html Sent from the Xerces - J - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
