Hi Ranjit,

riyer <ri...@esri.com> 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: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

Reply via email to