xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r151240 - in xmlbeans/site: build/site/samples/index.html build/site/samples/index.pdf src/documentation/content/xdocs/samples/index.xml
Date Thu, 03 Feb 2005 22:05:07 GMT
Author: radup
Date: Thu Feb  3 14:05:05 2005
New Revision: 151240

URL: http://svn.apache.org/viewcvs?view=rev&rev=151240
Log:
Added to the "samples" section a comment to the effect that some code in tools is also a good
sample.

Modified:
    xmlbeans/site/build/site/samples/index.html
    xmlbeans/site/build/site/samples/index.pdf
    xmlbeans/site/src/documentation/content/xdocs/samples/index.xml

Modified: xmlbeans/site/build/site/samples/index.html
URL: http://svn.apache.org/viewcvs/xmlbeans/site/build/site/samples/index.html?view=diff&r1=151239&r2=151240
==============================================================================
--- xmlbeans/site/build/site/samples/index.html (original)
+++ xmlbeans/site/build/site/samples/index.html Thu Feb  3 14:05:05 2005
@@ -417,6 +417,37 @@
             
 </table>
 </div>
+        
+<a name="N10175"></a><a name="-N10175"></a>
+<h3></h3>
+<div style="margin-left: 0 ; border: 2px">
+<p>
+              Also, some of the code in the XmlBeans tools is a very good example
+              of how to use XmlBeans. In paricular see
+              </p>
+<ul>
+                
+<li>
+<span class="codefrag">org.apache.xmlbeans.impl.tool.InstanceValidator</span>
+                It is an excellent example of how to load a schema
+                type system dynamically at runtime, load and validate
+                an instance within that type system, and how to obtain
+                lists of and locations for validation errors.</li>
+                
+<li>
+<span class="codefrag">org.apache.xmlbeans.impl.xsd2inst.SampleXmlUtil</span>
+                It is a great example of how to combine the XmlCursor and
+                SchemaType APIs to create a full [sub]document
+                that includes required children, default values etc.</li>
+                
+<li>
+<span class="codefrag">org.apache.xmlbeans.impl.tool.PrettyPrinter</span>
+                It is a reasonable example of how to load and save out an
+                arbitrary XML document.  XmlOptions are used to produce
+                the pretty-printing.</li>
+              
+</ul>
+</div>
     
 <div class="attribution"></div>
 </div>

Modified: xmlbeans/site/build/site/samples/index.pdf
URL: http://svn.apache.org/viewcvs/xmlbeans/site/build/site/samples/index.pdf?view=diff&r1=151239&r2=151240
==============================================================================
Binary files - no diff available.

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?view=diff&r1=151239&r2=151240
==============================================================================
--- xmlbeans/site/src/documentation/content/xdocs/samples/index.xml (original)
+++ xmlbeans/site/src/documentation/content/xdocs/samples/index.xml Thu Feb  3 14:05:05 2005
@@ -150,5 +150,27 @@
                 </tr>
             </table>
         </section>
+        <section>
+            <title/>
+              <p>
+              Also, some of the code in the XmlBeans tools is a very good example
+              of how to use XmlBeans. In paricular, see:
+              </p>
+              <ul>
+                <li><code>org.apache.xmlbeans.impl.tool.InstanceValidator</code>
+                It is an excellent example of how to load a schema
+                type system dynamically at runtime, load and validate
+                an instance within that type system, and how to obtain
+                lists of and locations for validation errors.</li>
+                <li><code>org.apache.xmlbeans.impl.xsd2inst.SampleXmlUtil</code>
+                It is a great example of how to combine the XmlCursor and
+                SchemaType APIs to create a full [sub]document
+                that includes required children, default values etc.</li>
+                <li><code>org.apache.xmlbeans.impl.tool.PrettyPrinter</code>
+                It is a reasonable example of how to load and save out an
+                arbitrary XML document.  XmlOptions are used to produce
+                the pretty-printing.</li>
+              </ul>
+        </section>
     </body>
 </document>



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


Mime
View raw message