You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-user@xml.apache.org by Radhakrishnan J <ra...@tavant.com> on 2004/05/05 02:55:28 UTC
Some basic questions on XMLBeans ?
Hi,
I'm very new to both XML and XMLBeans. I have gone through the documentation
shipped with release 1.0.2. I haven't gone through the mail archives.
I tried using the easypo example that ships with the release. And here is
how the first few lines of code look like -
InputStream is = ...;
XmlPurchaseOrderDocumentBean doc =
XmlPurchaseOrderDocumentBean.Factory.parse(is);
XmlPurchaseOrderDocumentBean.PurchaseOrder po = doc.getPurchaseOrder();
I'm interested in knowing what happens *under the covers* here. The
documentation says that XML beans works with an in-memory copy of the XML
that obliviates the need for unmarshalling. I was just wondering if its just
a character array thats kept in-memory ?? Or is it a tree of XmlObject
instances for the entire document ( wouldn't this be similar to DOM parsing
) ? Is XMLBeans' parsing any different from DOM parsing ? Wouldn't it leave
a significant memory footprint for large XML documents ?
I am hard pressed for time to read the code ( I'd eventually do that anyway
) or do any memory profiling, hence the post.
Thanks,
Radhakrishnan
- ---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/