<html>
<body>
Hi there:<br><br>
I just got the JDOM b10 downloaded and realized that the Element class
implements the Parent Interface. I have the following codes that
will not compile:<br><br>
rootElement.addContent(new
Element("Course").addContent("Math"));<br><br>
Where the rootElement is already defined as the root element and I am
trying to add another element called Course and apply it's content.
<br><br>
The error message I received is something like....<br>
cannot resolve symbol<br>
symbol : method addContent (org.jdom.Parent)<br>
location: class org.jdom.Element<br><br>
<br>
If I break this one statement into the following then everything
works:<br><br>
Element course = new Element("Course");<br>
course.addContent("Math");<br>
rootElement.addContent(course);<br><br>
The same one-liner code use to work in Beta 9 version. Can anyone
offer me some hints or possible fixes using Beta 10.<br><br>
Best, Joseph<br>
jyin@qualcomm.com<br>
<x-sigsep><p></x-sigsep>
=====================================================================
<br>
<font size=4><b><i>Joseph C. Yin</i></b>, <b><i>MSBA (IS
Auditing)</i></b><x-tab> </x-tab><x-tab> </x-tab></font><b><i>Location:
<x-tab> </x-tab>S-204A<br>
Staff Programmer
Analyst<x-tab> </x-tab>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab>Phone#<x-tab> </x-tab><x-tab> </x-tab>(858)
651-0316 <br>
QUALCOMM Incorporated.<x-tab> </x-tab>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab>Fax
#
<x-tab> </x-tab><x-tab> </x-tab>(858)
658-1011<br>
IT Product Development
Services<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab>EMail
: jyin@qualcomm.com <br>
</i></b><font size=4 color="#0000FF">"<b><i>TEAM</i></b> -
<b><i>T</i></b>ogether <b><i>E</i></b>veryone <b><i>A</i></b>ccomplishes
<b><i>M</i></b>ore" <br>
</font><font size=4>==================================================</font><font size=4 color="#FF0000">
</font></body>
</html>