[jdom-interest] which one will parse more quickly?

James Cook James.Cook at jobpartners.com
Thu Nov 8 02:03:43 PST 2001


Q1: Try it and see!

Q2: Without the exception it's kind of hard to know, but you will have to do
something like this...

Element root = doc1.getRootElement();
root.detach();
doc2.getRootElement().addContent(root);

James

-----Original Message-----
From: Ronyn Woods [mailto:ronynwoods at hotmail.com]
Sent: 08 November 2001 03:28
To: jdom-interest at jdom.org
Subject: [jdom-interest] which one will parse more quickly?


Dear All,

>>>>Q1:
I have two xml files as following:

=======File One========
<person>
<name>Tom</name>
<age>56</age>
<sex>male</sex>
</person>

=======File Two========
<person>
<name age="56" sex="male">Tom</name>
</person>

When xml files converted to JDom document
which one will parse more quickly?

>>>>Q2:
I try to add a XML file's root element to another XML file's
root element as its child, but failed. How can i do?


Thanks all!

Ronyn

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com


This e-mail and any attachments are confidential and may also be privileged.
If you are not the named recipient, please notify the sender immediately and
do not disclose the contents to another person, use it for any purpose, or
store or copy the information in any medium. Any views or opinions presented
are solely those of the author and do not necessarily represent those of
Jobpartners.  Jobpartners is unable to guarantee the security (especially
that of attached files) of any email content outside of our own computer
systems.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20011108/be59703e/attachment.htm


More information about the jdom-interest mailing list