|
Home > Online Product Documentation > Table of Contents > Example - demo.bat Example - demo.bat
The following example shows an implementation of a simple application built using the Stylus Studio File System Java API. The application,
Demonstration Files
The files required to run this demonstration are installed in the
demo.java
Here is the
Required classes
The file starts with the Java and Stylus Studio File System Java API classes and interfaces required by
Setting the installation directory
User-defined adapters (
These lines are commented out in
Creating an instance of StylusFile
Next, the
The copy () method
The
The
Whether your files are saved as XML or non-XML depends on how the
Converting a file to XML
Once the new instance of
In this block of code, the adapter URL is used to specify the
Converting an XML document to another format
This exception block specifies the
Using an adapter URL with a user-defined adapter
The final exception block uses a user-defined adapter built using the Convert to XML module (
As with the first exception block, this block uses the adapter URL to specify the
|
Forest & Paper Products
Many forest & paper product companies realize the best XML suite doesn't have "pay per" features. That's why these top forest & paper product companies choose Stylus Studio 2006 to get the world's best XML features all in one bundle!
Chemical Companies That Use Stylus Studio
When working in a lab it's always important to have the right ingredients. That's why top chemical companies use Stylus Studio 2006 to create the ultimate experiments. See which of these top chemical companies are using Stylus Studio today!
Learn SQL/XML
Learn how to access and update relational databases using industry-standard SQL/XML technologies along with Stylus Studio's DB-to-XML editor and File Explorer technologies.
DTD Editor
The Stylus Studio DTD Editor lets you visually develop Document Type Definitions (DTD) to structure XML documents. The DTD Editor also includes tools and utilites for validating XML against DTD's, converting DTD's, and generating DTD's.