Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

getColumnClass & XML

843834Jun 5 2003 — edited Jun 5 2003
I am implementing the table model in an applet. This applet reads an xml file to construct the data model. How do i read an xml attribute:
ie - <column class="String"></column> and cast the string return to the appropriate class variable.

My Code so far:

public Class getColumnClass(int i)
{
Element node = (Element)columns.item(i);
Object xClass = node.getAttribute("class"); 'Need to convert string return to an actual class object.
return ((Class)xClass);
}

All help is much appreciated!!!!!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2003
Added on Jun 5 2003
1 comment
82 views