Click here to Skip to main content
15,893,814 members
Articles / Programming Languages / XML

XMLFoundation

Rate me:
Please Sign up or sign in to vote.
4.82/5 (12 votes)
2 Jul 20029 min read 75.2K   1.4K   34  
Obtaining data marked up in XML creates the need for Application Layer tools to easily and efficiently work with XML data.
===============================================================================
			  Comming soon to Solaris
===============================================================================
I'm waiting on my compiler upgrade to be mailed to me.




===============================================================================
			  Tested in RedHat Linux 7.2
===============================================================================

Follow the instructions for (95/98/NT/2K) with the exception
of turning your slashes the correct way, and assigning environment
variables the UNIX way.

put /Linux/libJavaXMLFoundation.so in the classpath.

===============================================================================
			Tested in Windows 95/98/NT/2K
===============================================================================

Download and install the lastest Java Development Kit(JDK).  It is available 
for free from:

		http://java.sun.com/j2se/1.2/index.html
		http://java.sun.com/j2se/1.3/index.html
		http://java.sun.com/j2se/1.4/index.html

This example was tested with the JDK as old as 1.2.2 and as new as 1.4
which is in beta testing at the time of this writing (Oct 5, 2001).

1.  ====== Type the following at a command prompt: =========

    c:\jdk1.4\bin\javac TestMain.java


2.  ====== Verify the following file  =========
    JavaXMLFoundation.dll needs to be in the path or the current directory.  
    You may need to move JavaXMLFoundation.dll to reside in a location that is
    in your class path or modify the CLASSPATH to use the current directory 
    by typing: set CLASSPATH = %CLASSPATH%;.


    FYI:  All the source to build this DLL is included.  See the project in
    /Tools/JavaFoundation for details on compiling the DLL.



IF YOU ALREADY HAVE A FILE NAMED TXML.TXT in C:\ SKIP STEPS 3 AND 4



3. ====== configure txml.txt  =========

    open txml.txt in a text editor.
    set the [Errors=] to the location of the error file on your machine.

4. ====== move txml.txt to [c:\] =========

    This will setup the error message file.  Error messages are stored 
    on disk (rather than compiled into the DLL).  When the system encounters an 
    error, the description is loaded from a location that you may configure in 
    the txml.txt file.  This file will be loaded from the root of your filesystem
    (c:\ in Windows, / in UNIX) OR from the environment setting "XML_CONFIG_FILE" 
    when set to a  value like: "c:\my\path\txml.txt"



5.  ====== Type the following at a command prompt: =========

c:\jdk1.4\bin\java TestMain



copy the output (by selecting the text in the DOS window and press Enter)
paste it into a to text window so that you can see the output that was 
generated by TestMain.java.  Read TestMain.java to understand how the XML
was used to create and update objects and how the objects are used to
create XML.








By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Founder United Business Technologies
United States United States
http://about.me/brian.aberle
https://www.linkedin.com/in/brianaberle
http://SyrianRue.org/Brian

Comments and Discussions