Solved

Can JAXB be used in JBuilder 8.0 enterprise

Posted on 2003-11-18
5
342 Views
Last Modified: 2010-03-31
Can JAXB be used in JBuilder 8.0 enterprise edition? If so, are there tutorials or examples of any simple programs? It looks as though this is the path we will be taking for a new project at work.
0
Comment
Question by:plonergan
5 Comments
 
LVL 3

Expert Comment

by:yasser_helmy
ID: 9777309
AFAIK, JAXB exists in JBuilder since version 6. Jbuilder 6 can parse xsl and dtd files and generate java classes to handle the xml files. the jbuilder help has a tutorial for using the tools to generate the java classes.
0
 

Author Comment

by:plonergan
ID: 9795677
We will be using a Schema, not a DTD. I understand that Castor exists in JBuilder for this.
Our application will be polling a directory for new data which is in text form. We need to transform the text to xml to conform to our Schema and then use Castor's capabilities.
Any suggestions, I am ready to give up!!!!!
I will up the points to 500 for a very good answer with a simple example.
0
 
LVL 1

Accepted Solution

by:
FesterWim earned 100 total points
ID: 9797073
The conversion from the text to the xml will probably be needed to be programmed in java.

For using JAXB, I would recommened writing a simple ant build file that does the JAXB compilation. Like this:

<project name="buildConfigurationJaxb" default="compileSchema" basedir=".">
      <property name="library.dir" value="${basedir}/../lib"/>

      <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
        <classpath>
              <fileset dir="${library.dir}">
                    <include name="jaxb/**/*.jar"/>
                    <include name="jaxp/**/*.jar"/>
                    <include name="jwsdp-shared/lib/**/*.jar"/>
              </fileset>
        </classpath>
      </taskdef>

      <target name="compileSchema" >
            <xjc schema="agenda-schema.xsd" target="." package="com.yourcompagny.targetpackage.jaxb"/>
      </target>
</project>
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
My project did see openJDK that I installed. What could be the problem 7 122
firstChar challenge 13 107
for i loop in grovy 1 44
PDFBox - convert image to PDF, PDF resolution 3 117
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now