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!

Alternative API for com.sun.xml.tree package from Sun's Java Project X

843834Feb 27 2004 — edited Feb 27 2004
Our application is client/server based model where kernel writes data in XML structure
to Client(GUI). Client does SAX parsing where each node are read into
com.sun.xml.tree.ElementNode subclasses depending on the node type and builds a dom tree.
The doneParse method of ElementNode is used to create the specific nodes. Later swing
components are created from these specific ElementNode classes which are displayed in
the GUI. GUI can trigger some request to kernel, upon which kernel sends a modified
XML tree(the modified tree may be a subtree). GUI then does appendChild/removeChild/replaceChild
to refresh the swing components.
Now I am trying to find an alternative for com.sun.xml.tree package as they were
part of internal API and no current support by SUN. The best option is to use
xerces which is the current standard. The problem is getting alternative for
ElementNode class as I still need to create the swing components on the fly, and at the
sametime to add handlers to them which can trigger adding/removing components.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 26 2004
Added on Feb 27 2004
2 comments
219 views