Meaningless Drivel is fun!
The moose likes Other Open Source Projects and the fly likes XMLBean Extensions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "XMLBean Extensions" Watch "XMLBean Extensions" New topic

XMLBean Extensions

Durand Grimmett

Joined: Jun 02, 2004
Posts: 16
Hello all,

I am trying to extend my .xsd file by utilizing the Extension Feature, but im not using the command line, im writing an application that mimics the procedure that is usually carried out on the command line. I have the instructions for using the Extension feature from the command line:

1. Place an XML comment around the extension element in the .xsdconfig file. Then at a prompt in the working directory perfom the scomp command

2. Compile the interface and handler class using the resulting jar from step #1 and xbean.jar

3. Remove the XML comment around the extension element in the .xsdconfig file. Then run scomp again with the .xsd and .xsdconfig Files, making sure that compiled extension classes from step#2 are on the classpath.

My application performs all of the previous steps however, when i run the scomp command for the second time(Step #3), I get the error "Build Failed". Which classpath should I be setting? System.setProperty()? or SchemaCompilerParameter.setClasspath()? Also within the SchemaCompilerParameter class there is a setBaseDir() method, should I set this as well, and if so what do I set it to?..........Im pretty sure that this is a configuration issue because I can make it work from the command line. Can anyone help me Please???

P.S. There is also a SchemaCompilerParameter.setExtension() method......does anyone know what this does or how to use it?.....the javaDocs on this package are not too good, there are no explanations.

Thanks in advance,

I agree. Here's the link:
subject: XMLBean Extensions
It's not a secret anymore!