Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Can JAXB be used in JBuilder 8.0 enterprise

Posted on 2003-11-18
5
344 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Apps blocked by Java 9 88
Glassfish admin console not working 1 32
hashmap order 17 37
Need Help! Getting a syntax error and don't understand why 3 31
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
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.

856 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