Reputation: 15251
Is there a open source or commercial component for a visual xml tree editor? It should parse an xml file and allow the user to easily edit nodes, attributes etc.
Basically, user also needs to be able to add nodes in real time.
Upvotes: 0
Views: 8414
Reputation: 7827
Here is the excellent article for generating a tree view structure based on the given xml file on the fly.
http://www.developer.com/xml/article.php/3731356/Displaying-XML-in-a-Swing-JTree.htm
once the tree structure is generated you have to write your own logic to edit , add nodes.
Upvotes: 0
Reputation: 54074
Well, you can write one by your self. Just parse the file and you can use a JTreeTable (swingx) to render it and manipulate it dynamically.
You can see this post:
java-lib for xml tree visualization
The answer by Kumar has an example on how to proceed
Upvotes: 0
Reputation: 4266
The Eclipse editor have a pretty good xml editor. It can show xml in source and in tree-like view. http://www.eclipse.org/
Upvotes: 1