xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ce...@apache.org
Subject svn commit: r209778 - in /xmlbeans/site/src/documentation/content: samples/ xdocs/ xdocs/samples/
Date Fri, 08 Jul 2005 14:06:13 GMT
Author: cezar
Date: Fri Jul  8 07:06:11 2005
New Revision: 209778

URL: http://svn.apache.org/viewcvs?rev=209778&view=rev
Log:
Adding doc source and archives for new samples; updating related files. Contributed by Steve
Traut.

Added:
    xmlbeans/site/src/documentation/content/samples/Any.tgz   (with props)
    xmlbeans/site/src/documentation/content/samples/Any.zip   (with props)
    xmlbeans/site/src/documentation/content/samples/Validation.tgz   (with props)
    xmlbeans/site/src/documentation/content/samples/Validation.zip   (with props)
    xmlbeans/site/src/documentation/content/samples/XQueryXPath.tgz   (with props)
    xmlbeans/site/src/documentation/content/samples/XQueryXPath.zip   (with props)
    xmlbeans/site/src/documentation/content/samples/XmlTree.tgz   (with props)
    xmlbeans/site/src/documentation/content/samples/XmlTree.zip   (with props)
    xmlbeans/site/src/documentation/content/xdocs/samples/Any.xml
    xmlbeans/site/src/documentation/content/xdocs/samples/Validation.xml
    xmlbeans/site/src/documentation/content/xdocs/samples/XQueryXPath.xml
    xmlbeans/site/src/documentation/content/xdocs/samples/XmlTree.xml
Modified:
    xmlbeans/site/src/documentation/content/samples/samples.tgz
    xmlbeans/site/src/documentation/content/samples/samples.zip
    xmlbeans/site/src/documentation/content/xdocs/samples/index.xml
    xmlbeans/site/src/documentation/content/xdocs/site.xml

Added: xmlbeans/site/src/documentation/content/samples/Any.tgz
URL: http://svn.apache.org/viewcvs/xmlbeans/site/src/documentation/content/samples/Any.tgz?rev=209778&view=auto
==============================================================================
Binary file - no diff available.

Propchange: xmlbeans/site/src/documentation/content/samples/Any.tgz
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: xmlbeans/site/src/documentation/content/samples/Any.zip
URL: http://svn.apache.org/viewcvs/xmlbeans/site/src/documentation/content/samples/Any.zip?rev=209778&view=auto
==============================================================================
Binary file - no diff available.

Propchange: xmlbeans/site/src/documentation/content/samples/Any.zip
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: xmlbeans/site/src/documentation/content/samples/Validation.tgz
URL: http://svn.apache.org/viewcvs/xmlbeans/site/src/documentation/content/samples/Validation.tgz?rev=209778&view=auto
==============================================================================
Binary file - no diff available.

Propchange: xmlbeans/site/src/documentation/content/samples/Validation.tgz
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: xmlbeans/site/src/documentation/content/samples/Validation.zip
URL: http://svn.apache.org/viewcvs/xmlbeans/site/src/documentation/content/samples/Validation.zip?rev=209778&view=auto
==============================================================================
Binary file - no diff available.

Propchange: xmlbeans/site/src/documentation/content/samples/Validation.zip
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: xmlbeans/site/src/documentation/content/samples/XQueryXPath.tgz
URL: http://svn.apache.org/viewcvs/xmlbeans/site/src/documentation/content/samples/XQueryXPath.tgz?rev=209778&view=auto
==============================================================================
Binary file - no diff available.

Propchange: xmlbeans/site/src/documentation/content/samples/XQueryXPath.tgz
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: xmlbeans/site/src/documentation/content/samples/XQueryXPath.zip
URL: http://svn.apache.org/viewcvs/xmlbeans/site/src/documentation/content/samples/XQueryXPath.zip?rev=209778&view=auto
==============================================================================
Binary file - no diff available.

Propchange: xmlbeans/site/src/documentation/content/samples/XQueryXPath.zip
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: xmlbeans/site/src/documentation/content/samples/XmlTree.tgz
URL: http://svn.apache.org/viewcvs/xmlbeans/site/src/documentation/content/samples/XmlTree.tgz?rev=209778&view=auto
==============================================================================
Binary file - no diff available.

Propchange: xmlbeans/site/src/documentation/content/samples/XmlTree.tgz
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: xmlbeans/site/src/documentation/content/samples/XmlTree.zip
URL: http://svn.apache.org/viewcvs/xmlbeans/site/src/documentation/content/samples/XmlTree.zip?rev=209778&view=auto
==============================================================================
Binary file - no diff available.

Propchange: xmlbeans/site/src/documentation/content/samples/XmlTree.zip
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: xmlbeans/site/src/documentation/content/samples/samples.tgz
URL: http://svn.apache.org/viewcvs/xmlbeans/site/src/documentation/content/samples/samples.tgz?rev=209778&r1=209777&r2=209778&view=diff
==============================================================================
Binary files - no diff available.

Modified: xmlbeans/site/src/documentation/content/samples/samples.zip
URL: http://svn.apache.org/viewcvs/xmlbeans/site/src/documentation/content/samples/samples.zip?rev=209778&r1=209777&r2=209778&view=diff
==============================================================================
Binary files - no diff available.

Added: xmlbeans/site/src/documentation/content/xdocs/samples/Any.xml
URL: http://svn.apache.org/viewcvs/xmlbeans/site/src/documentation/content/xdocs/samples/Any.xml?rev=209778&view=auto
==============================================================================
--- xmlbeans/site/src/documentation/content/xdocs/samples/Any.xml (added)
+++ xmlbeans/site/src/documentation/content/xdocs/samples/Any.xml Fri Jul  8 07:06:11 2005
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.2//EN" "http://forrest.apache.org/dtd/document-v12.dtd">
+<document>
+    <header>
+        <title>Any Sample</title>
+    </header>
+    <body>
+        <section>
+            <title>Description</title>
+            <p>Author: Steve Traut</p>
+            <p>Available: 2005-07-08</p>
+            <p>Versions: xmlbeans-1.0.3, xmlbeans-v2</p>
+            <p>This sample illustrates how you can use the XMLBeans API to work with

+XML based on schema that features xs:any particles. Unlike other schema 
+types, xs:any in schema does not result in accessors when you use XMLBeans
+to compile schema. Instead, your code must use alternate means to access
+and create these parts of the XML.</p>
+        </section>
+        <section>
+            <title>Files</title>
+            <ul>
+              <li><link href="Any.zip">Zip of all files (Any.zip)</link></li>
+              <li><link href="Any.tgz">Tar gzip of all files (Any.tgz)</link></li>
+            </ul>
+            <ul>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/Any/README.txt">Readme
file</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/Any/src/org/apache/xmlbeans/samples/anytype/Any.java">Any.java</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/Any/src/org/apache/xmlbeans/samples/anytype/AnyTest.java">AnyTest.java</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/Any/schemas/any.xsd">any.xsd</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/Any/xml/any.xml">any.xml</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/Any/build.xml">build.xml</link></li>
+            </ul>
+        </section>
+    </body>
+</document>

Added: xmlbeans/site/src/documentation/content/xdocs/samples/Validation.xml
URL: http://svn.apache.org/viewcvs/xmlbeans/site/src/documentation/content/xdocs/samples/Validation.xml?rev=209778&view=auto
==============================================================================
--- xmlbeans/site/src/documentation/content/xdocs/samples/Validation.xml (added)
+++ xmlbeans/site/src/documentation/content/xdocs/samples/Validation.xml Fri Jul  8 07:06:11
2005
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.2//EN" "http://forrest.apache.org/dtd/document-v12.dtd">
+<document>
+    <header>
+        <title>Validation Sample</title>
+    </header>
+    <body>
+        <section>
+            <title>Description</title>
+            <p>Author: Steve Traut</p>
+            <p>Available: 2005-07-08</p>
+            <p>Versions: xmlbeans-1.0.3, xmlbeans-v2</p>
+            <p>This sample illustrates how you can use the XMLBeans API to validate
+XML instances against schema. The API provides two validation features:</p>
+<ul>
+<li>A validate method (available from XmlOjbect and types generated from schema)
+with which you can validate the bound instance and collect error messages that 
+result.</li>
+<li>An option through which you can specify that simple schema types should
+be validated by XMLBeans when your code sets their value. This feature
+will simply throw an exception if setting the value renders the instance
+invalid.</li>
+</ul>
+        </section>
+        <section>
+            <title>Files</title>
+            <ul>
+              <li><link href="Validation.zip">Zip of all files (Validation.zip)</link></li>
+              <li><link href="Validation.tgz">Tar gzip of all files (Validation.tgz)</link></li>
+            </ul>
+            <ul>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/Validation/README.txt">Readme
file</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/Validation/src/org/apache/xmlbeans/samples/validation/Validation.java">Validation.java</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/Validation/src/org/apache/xmlbeans/samples/validation/ValidationTest.java">ValidationTest.java</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/Validation/schemas/todolist.xsd">todolist.xsd</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/Validation/xml/todolist.xml">todolist.xml</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/Validation/build.xml">build.xml</link></li>
+            </ul>
+        </section>
+    </body>
+</document>

Added: xmlbeans/site/src/documentation/content/xdocs/samples/XQueryXPath.xml
URL: http://svn.apache.org/viewcvs/xmlbeans/site/src/documentation/content/xdocs/samples/XQueryXPath.xml?rev=209778&view=auto
==============================================================================
--- xmlbeans/site/src/documentation/content/xdocs/samples/XQueryXPath.xml (added)
+++ xmlbeans/site/src/documentation/content/xdocs/samples/XQueryXPath.xml Fri Jul  8 07:06:11
2005
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.2//EN" "http://forrest.apache.org/dtd/document-v12.dtd">
+<document>
+    <header>
+        <title>XQueryXPath Sample</title>
+    </header>
+    <body>
+        <section>
+            <title>Description</title>
+            <p>Author: Steve Traut</p>
+            <p>Available: 2005-07-08</p>
+            <p>Versions: xmlbeans-v2</p>
+            <p>This sample illustrates how you can use the XMLBeans API to execute
+XPath and XQuery expressions. The sample illustrates these features:</p>
+<ul>
+<li>Using the XmlObject.selectPath and XmlCursor.selectPath methods
+to execute XPath expressions. The selectPath method's results (if
+any) are always chunks of the instance queried against. In other
+words, changes to query results change the original instance.
+However, you work with results differently depending on whether
+selectPath was called from an XmlObject or XmlCursor instance. See
+the SelectPath class for more information.</li>
+
+<li>Using the XmlObject.execQuery and XmlCursor.execQuery methods
+to execute XQuery expressions. Results of these queries are copied
+into new XML, meaning that changes to results do not change the 
+original instance. Here again, you work with results differently
+depending how which method you used to query. See the ExecQuery
+class for more information.</li>
+</ul>
+        </section>
+        <section>
+            <title>Files</title>
+            <ul>
+              <li><link href="XQueryXPath.zip">Zip of all files (XQueryXPath.zip)</link></li>
+              <li><link href="XQueryXPath.tgz">Tar gzip of all files (XQueryXPath.tgz)</link></li>
+            </ul>
+            <ul>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/XQueryXPath/README.txt">Readme
file</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/XQueryXPath/src/org/apache/xmlbeans/samples/xquery/ExecQuery.java">ExecQuery.java</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/XQueryXPath/src/org/apache/xmlbeans/samples/xquery/SelectPath.java">SelectPath.java</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/XQueryXPath/src/org/apache/xmlbeans/samples/xquery/XQueryXPath.java">XQueryXPath.java</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/XQueryXPath/src/org/apache/xmlbeans/samples/xquery/XQueryXPathTest.java">XQueryXPathTest.java</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/XQueryXPath/schemas/employeeschema.xsd">employeeschema.xsd</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/XQueryXPath/xml/employees.xml">employees.xml</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/XQueryXPath/build.xml">build.xml</link></li>
+            </ul>
+        </section>
+    </body>
+</document>

Added: xmlbeans/site/src/documentation/content/xdocs/samples/XmlTree.xml
URL: http://svn.apache.org/viewcvs/xmlbeans/site/src/documentation/content/xdocs/samples/XmlTree.xml?rev=209778&view=auto
==============================================================================
--- xmlbeans/site/src/documentation/content/xdocs/samples/XmlTree.xml (added)
+++ xmlbeans/site/src/documentation/content/xdocs/samples/XmlTree.xml Fri Jul  8 07:06:11
2005
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.2//EN" "http://forrest.apache.org/dtd/document-v12.dtd">
+<document>
+    <header>
+        <title>XmlTree Sample</title>
+    </header>
+    <body>
+        <section>
+            <title>Description</title>
+            <p>Author: Steve Traut</p>
+            <p>Available: 2005-07-08</p>
+            <p>Versions: xmlbeans-1.0.3, xmlbeans-v2</p>
+            <p>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.</p>
+        </section>
+        <section>
+            <title>Files</title>
+            <ul>
+              <li><link href="XmlTree.zip">Zip of all files (XmlTree.zip)</link></li>
+              <li><link href="XmlTree.tgz">Tar gzip of all files (XmlTree.tgz)</link></li>
+            </ul>
+            <ul>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/XmlTree/README.txt">Readme
file</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/XmlTree/src/org/apache/xmlbeans/samples/xmltree/XmlEntry.java">XmlEntry.java</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/XmlTree/src/org/apache/xmlbeans/samples/xmltree/XmlModel.java">XmlModel.java</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/XmlTree/src/org/apache/xmlbeans/samples/xmltree/XmlTree.java">XmlTree.java</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/XmlTree/src/org/apache/xmlbeans/samples/xmltree/XmlTreeFrame.java">XmlTreeFrame.java</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/XmlTree/src/org/apache/xmlbeans/samples/xmltree/XmlTreeTest.java">XmlTreeTest.java</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/XmlTree/xml/PurchaseOrder.xml">PurchaseOrder.xml</link></li>
+                <li><link href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/XmlTree/build.xml">build.xml</link></li>
+            </ul>
+        </section>
+    </body>
+</document>

Modified: xmlbeans/site/src/documentation/content/xdocs/samples/index.xml
URL: http://svn.apache.org/viewcvs/xmlbeans/site/src/documentation/content/xdocs/samples/index.xml?rev=209778&r1=209777&r2=209778&view=diff
==============================================================================
--- xmlbeans/site/src/documentation/content/xdocs/samples/index.xml (original)
+++ xmlbeans/site/src/documentation/content/xdocs/samples/index.xml Fri Jul  8 07:06:11 2005
@@ -65,6 +65,36 @@
                 </tr>
                 <tr>
                     <td>
+                        <link href="Any.html">
+                            <strong>Any</strong>
+                        </link>
+                        <br/>
+                      Illustrates how you can use the XMLBeans API to work with XML based
on schema that features xs:any particles
+                    </td>
+                    <td>
+                      <link href="Any.zip">zip</link>
+                      <link href="Any.tgz">tgz</link>
+                    </td>
+                    <td>2005-07-08</td>
+                </tr>
+                <tr>
+                    <td>
+                        <link href="DateTime.html">
+                            <strong>DateTime</strong>
+                        </link>
+                        <br/>
+                        This sample demonstrates how you can work with XML
+                        Schema primitive types date,
+                        dateTime, time, duration, gDay.
+                    </td>
+                    <td>
+                      <link href="DateTime.zip">zip</link>
+                      <link href="DateTime.tgz">tgz</link>
+                    </td>
+                    <td>2004-10-28</td>
+                </tr>
+                <tr>
+                    <td>
                         <link href="MixedContent.html">
                             <strong>MixedContent</strong>
                         </link>
@@ -125,19 +155,17 @@
                 </tr>
                 <tr>
                     <td>
-                        <link href="DateTime.html">
-                            <strong>DateTime</strong>
+                        <link href="Validation.html">
+                            <strong>Validation</strong>
                         </link>
                         <br/>
-                        This sample demonstrates how you can work with XML
-                        Schema primitive types date,
-                        dateTime, time, duration, gDay.
+                        Illustrates how you can use the XMLBeans API to validate XML instances
against schema.
                     </td>
                     <td>
-                      <link href="DateTime.zip">zip</link>
-                      <link href="DateTime.tgz">tgz</link>
+                      <link href="Validation.zip">zip</link>
+                      <link href="Validation.tgz">tgz</link>
                     </td>
-                    <td>2004-10-28</td>
+                    <td>2005-07-08</td>
                 </tr>
                 <tr>
                     <td>
@@ -153,6 +181,34 @@
                       <link href="AbstractTypes.tgz">tgz</link>
                     </td>
                     <td>2005-02-07</td>
+                </tr>
+                <tr>
+                    <td>
+                        <link href="XmlTree.html">
+                            <strong>XmlTree</strong>
+                        </link>
+                        <br/>
+                        Illustrates how you can use the XMLBeans API to create a Java tree
view of an XML document.
+                    </td>
+                    <td>
+                      <link href="XmlTree.zip">zip</link>
+                      <link href="XmlTree.tgz">tgz</link>
+                    </td>
+                    <td>2005-07-08</td>
+                </tr>
+                <tr>
+                    <td>
+                        <link href="XQueryXPath.html">
+                            <strong>XQueryXPath</strong>
+                        </link>
+                        <br/>
+                        Illustrates how you can use the XMLBeans API to execute XPath and
XQuery expressions.
+                    </td>
+                    <td>
+                      <link href="XQueryXPath.zip">zip</link>
+                      <link href="XQueryXPath.tgz">tgz</link>
+                    </td>
+                    <td>2005-07-08</td>
                 </tr>
                 <tr>
                     <td>

Modified: xmlbeans/site/src/documentation/content/xdocs/site.xml
URL: http://svn.apache.org/viewcvs/xmlbeans/site/src/documentation/content/xdocs/site.xml?rev=209778&r1=209777&r2=209778&view=diff
==============================================================================
--- xmlbeans/site/src/documentation/content/xdocs/site.xml (original)
+++ xmlbeans/site/src/documentation/content/xdocs/site.xml Fri Jul  8 07:06:11 2005
@@ -40,12 +40,16 @@
         <index href="samples/index.html"/>
         <samplesList label="Samples List" description="View the list of available samples.">
             <sample label="AbstractTypes" href="samples/AbstractTypes.html" tab="samples"/>
+            <sample label="Any" href="samples/Any.html" tab="samples"/>
+            <sample label="DateTime" href="samples/DateTime.html" tab="samples"/>
             <sample label="MixedContent" href="samples/MixedContent.html" tab="samples"/>
             <sample label="OrderMatters" href="samples/OrderMatters.html" tab="samples"/>
             <sample label="SchemaEnum" href="samples/SchemaEnum.html" tab="samples"/>
             <sample label="SubstitutionGroup" href="samples/SubstitutionGroup.html" tab="samples"/>
-            <sample label="DateTime" href="samples/DateTime.html" tab="samples"/>
+            <sample label="Validation" href="samples/Validation.html" tab="samples"/>
             <sample label="Velocity XmlBeans" href="samples/vxsdb.html" tab="samples"/>
+            <sample label="XmlTree" href="samples/XmlTree.html" tab="samples"/>
+            <sample label="XQueryXPath" href="samples/XQueryXPath.html" tab="samples"/>
             <sample label="SampleTemplate" href="samples/SampleTemplate.html" tab="samples"/>
         </samplesList>  
     </samples-tab>



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


Mime
View raw message