Alternative API for com.sun.xml.tree package from Sun's Java Project X
843834Feb 27 2004 — edited Feb 27 2004Our 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.