[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Resolved: (XMLBEANS-169) Review XmlTree sample and add to sample repository
From:       "Rajiv Bala (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2005-06-18 2:27:44
Message-ID: 1073500934.1119061664561.JavaMail.jira () ajax ! apache ! org
[Download RAW message or body]

     [ http://issues.apache.org/jira/browse/XMLBEANS-169?page=all ]
     
Rajiv Bala resolved XMLBEANS-169:
---------------------------------

    Resolution: Fixed

Checked in with revision 191227

> Review XmlTree sample and add to sample repository
> --------------------------------------------------
> 
> Key: XMLBEANS-169
> URL: http://issues.apache.org/jira/browse/XMLBEANS-169
> Project: XMLBeans
> Type: Improvement
> Components: Samples
> Versions: TBD
> Reporter: Steve Traut
> Priority: Minor
> Fix For: TBD
> Attachments: XmlTree.zip
> 
> There have been a few questions from folks wondering how to bind XML to a JTree \
> using XMLBeans. Here's a sample showing how to do that.  From the readme:
> Sample: XmlTree
> Author: Steven Traut (straut@bea.com)
> Last Updated: June 14, 2005
> Versions:
> xmlbeans-v1 1.0.3
> xmlbeans-v2
> -----------------------------------------------------------------------------
> This sample illustrates how you can use the XMLBeans API to create a Java 
> tree view of an XML document. The JTree implementation in the sample supports 
> binding to any XML document. By accessing bound XML using an XmlCursor 
> instance and XPath rather than through accessors provided by compiling
> schema, the data model behind this tree can support XML without regard
> to schema. The XmlEntry contains the simple code that is XMLBeans-aware. 
> The XmlModel class, with which the tree implementation interacts directly, 
> in turn knows nothing of XMLBeans or the underlying XML, instead reaching 
> the data through XmlEntry instances.
> When you run this sample, it will display a window with the following bits of
> UI:
> - A box at the top with the path to the XML that the tree represents. By 
> default, this is the PurchaseOrder.xml file included with the sample. You can
> change this path to point to another XML file, then click the Refresh
> button to update the tree.
> - A pane on the left displaying the tree itself. You can click nodes in the
> tree to display the XML the node represents.
> - A pane on the right displaying XML for the tree node that is selected in
> the left pane.
> To try out this sample:
> 1. Set XMLBEANS_HOME in your environment
> 2. Ant must be on your PATH
> 3. To compile the sample source, run "ant build"
> 4. To execute the sample, run "ant run"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic