JAXB parser fails on multiple xsd files in same namespace

I am having a problem with JAXB parsing a schema that imports 2 schema files from a similar namespace. Lets say we have 3 schema files A.xsd, B.xsd, and C.xsd as follows:
A: <xsd:schema xmlns:xsd="<http://www.w3.org/2001/XMLSchema> targetNamespace="A" xmlns="A" xmlns:z="Z" xmlns:jxb="<http://java.sun.com/xml/ns/jaxb> jxb:version="1.0" elementFormDefault="qualified"> <xsd:import namespace="Z" schemaLocation="B.xsd"/> <xsd:import namespace="Z" schemaLocation="C.xsd"/> </xsd:schema>
B: <xsd:schema xmlns:xsd="<http://www.w3.org/2001/XMLSchema> targetNamespace="Z" xmlns="Z" elementFormDefault="qualified"><xs:element name="BElement"></xs:element></xsd:schema>
C: <xsd:schema xmlns:xsd="<http://www.w3.org/2001/XMLSchema> targetNamespace="Z" xmlns="Z" elementFormDefault="qualified"> <xs:element name="CElement"></xs:element></xsd:schema>
The problem we have is that JAXB compiler fails during parsing and complains about an unresolved element (z:CElement) in the second schema (C.xsd) for the single namespace (Z). The complaint is reversed if we flip the order of the imported schema. The exact error is as follows: [ERROR] src-resolve: Cannot resolve the name 'z:CElement' to a(n) element declaration component.
So the question is, how do we get JAXB to permit the import of 2 or more elements that are defined in individual schema files that belong to the same namespace.
Thanks for your support,

Greg,
I believe that Xerces does not (and is not required to) parse anything other than the first <import> for a given namespace. I think what you are seeing is that Xerces is ignoring the second import for the "Z" namespace and therefore, the JAXB schema compiler is complaining that it can't resolve the element ref.
Others on this thread may have already covered these work arounds, but here goes:
1. you can disable JAXB's schema validation check by passing "-nv" to xjc or <arg value="-nv"/> to the ant task. This should allow XJC to get past the xerces behavior and generate proper code. In the current codebase, we are realying on some xerces internals to perform schema validation within XJC.
2. you might also be able to create another schema file, say Z.xsd, that <includes> all of your schemas belonging to that namespace. Then you can bring all of them in with a single <import> of Z.xsd in A.xsd.
I haven't tried it, but I think it'll work.
Greg, FYI we have a very active developer community on Java.net - that's the best place to post these kinds of questions. We (the JAXB team) don't monitor the developer forums as closely. Check it out:
http://jaxb.dev.java.net
and join the "users" interest list:
https://jaxb.dev.java.net/servlets/ProjectMailingListList
Thanks,
--Ryan Shoemaker, Sun Microsystems, Inc.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • How to create java classes when multiple xsd files with same root element

    Hi,
    I got below error
    12/08/09 16:26:38 BST: [ERROR] Error while parsing schema(s).Location []. 'resultClass' is already defined
    12/08/09 16:26:38 BST: [ERROR] Error while parsing schema(s).Location []. (related to above error) the first definition appears here
    12/08/09 16:26:38 BST: Build errors for viafrance; org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.7.1:generate': Mojo execution failed.
    I tried genarate java classes from multiple xsd files, but getting above error, here in .xsd file i have the <xe: element="resultClass"> in all .xsd files.
    So I removed all .xsd files accept one, now genarated java classes correctly. but i want to genarte the java classes with diffrent names with out changing .xsd
    Can you please tell me any one how to resolve this one......
    regards
    prasad.nadendla

    Gregory:
    If you want to upload several Java classes in one script the solution is .sql file, for example:
    set define ?
    create or replace and compile java source named "my.Sleep" as
    package my;
    import java.lang.Thread;
    public class Sleep {
    public static void main(String []args) throws java.lang.InterruptedException {
    if (args != null && args.length>0) {
    int s = Integer.parseInt(args[0]);
    Thread.sleep(s*1000);
    } else
    Thread.sleep(1000);
    create or replace and compile java source named "my.App" as
    package my;
    public class App {
    public static void main(String []args) throws java.lang.InterruptedException {
    System.out.println(args[0]);
    exit
    Then the .sql file can be parsed using the SQLPlus, JDeveloper or SQLDeveloper tools.
    HTH, Marcelo.

  • Import Multiple XSD Files

    Is it not possible to import multiple xsd files. If a single file is used there is no problem but when the second import statement is added, it will not compile.
    It complains that it cannot find one of the element types. Removing the second import it compiles fine.
    I also tried it using seperate schema tags for each import.
    <types>
      <schema xmlns="http://www.w3.org/2001/XMLSchema">
       <import namespace="http://TargetNamespace.com/ftpadapter"
               schemaLocation="delimited_2.txt"/>
       <import namespace="http://xmlns.oracle.com/FTP_Test"
               schemaLocation="FTP_Test.xsd"/>
      </schema>
    </types>

    It is possible to add multiple XSD's in WSDL.
    1. Did u add different namespace alias's for these two in <definitions> section ??
    2.How you are referring the element which it can't find in the wsdl ?
    Try this to identify the issue
    "remove the first xsd and use the second one alone. "
    If this works then it eliminates that there is an issue with xsd.
    Thanks,
    Satish
    http://soadiscovery.blogspot.com

  • BI services error "Data parsing failed, premature end of file".

    Hi all,
    we are facing issue while using BI services whenever we are trying to drill data its showing the error as "Data parsing failed contact your system administrator,premature end of file".
    please share with me if anyone has faced the same error anytime.
    thank in advance for your valuable suggestions.
    Thanks,
    karan.

    Hi,
    Please check whether the RFC imported by you contain the exact elements of XML.  I feel the RFC generated does not contain proper XML schema.
    Regards
    Krish

  • JAXB: Shared objects across multiple xsds

    Hi all,
    Have three xsd files which all contain a few shared classes, I use xjc to put each one into a different package, and then of course they're incompatible with each other. I've tried placing all generated code in one package but the object managers aren't created properly. Also tried creating a base class and extending each shared class from there but that didn't work either.
    Does anyone know the best way to do this without manually modifiying the xml?
    Grateful for any help,
    Many thanks,
    Chris.

    That's too bad. Can't you record the update all function, create a batch, and run through all the psd files?
    Btw, the Photoline betas now also include a placeholder layer that instantly updates when the user changes the externally linked file(s). If the file with the externally linked content is open while changing the file(s), Photoline automatically senses the change, and will update accordingly. No need for an update function.
    I wonder if the Photoshop devs could include a similar function for their linked smart objects. It would simplify life.

  • XML Validation with multiple XSD files (referenced)

    Hello,
    I know that XML validation with version 7.1 is possible now. However I was provided with a set of XSD files that have references to each other and need to be placed in a hierachical file system order so that references can be resolved.
    An element <xsl:include schemaLocation="../../baseSchemas/baseSchema.xsd" /> is used for example. How can I handle that for XSD validation in PI? Can I create the same folder structure or do I need to put all XSD files in one directory and change the import manually?
    But most important question: Is it possible it all to use more than one XSD for schema validation?

    Dear Florian,
    I had encountered such case in a project.
    I was given 3 files. One main file and 2 others called Schema1.xsd and Schema2.xsd.
    This happens because your data type is not in single namespace, but is being referred across namespaces and software components.
    I am assuming that you have read the How to Guide for XML validations on PI 7.1
    Best way to do this quickly is as follows.
    1. Enable XML validation at adapter engine in the sender agreement.
    2. Post a message using HTTP post. (http://sappihttpclient.codeplex.com)
    3. Check communication channel in runtime workbench. There will be an error saying which is missing at what path.
    4. Create the path mentioned and place the file at that path.
    5. Repeat steps 2,3,4 for all the files.
    When you are done with this, you will get a proper validation error in case XML file is not correct. And remember to generate XSD from message type and not data type.
    Regards,
    Vikas
    Edited by: Vikas Aggarwal on Sep 2, 2009 8:45 PM
    Edited by: Vikas Aggarwal on Sep 2, 2009 8:48 PM

  • Question about creating multiple output  files from same query

    I have a query like this:
    select * from emp;
    ename empno deptno
    Scott 10001 10
    Tiger 10002 10
    Hanson 10003 20
    Jason 10004 30
    I need to create multiple output files in xml format for each dept
    example:
    emp_dept_10.xml
    emp_dept_20.xml
    emp_dept_30.xml
    each file will have the information for employees in different departmemts.
    The reason I need to do this is to avoid executing the same query 200 times for generating the same output for different departments. Please let me know if it is practically possible to do this.
    Any input is greatly appreciated.
    Thanks a lot!!

    You can write a shell script to generate the multiple spools files for the same output. Below script may helps you.
    #====================
    #!/bin/bash
    n=0
    while [ $n -le 20 ]
    do
    n=`expr $n + 1`
    sqlplus -s system/manager <<EOF
    spool emp_dept_$n.xml
    select count(1) from tab;
    spool off
    EOF
    done
    #====================

  • Question about creating multiple XML files from same query

    I have a query like this:
    select * from emp;
    ename empno deptno
    Scott 10001 10
    Tiger 10002 10
    Hanson 10003 20
    Jason 10004 30
    I need to create multiple output files in xml format for each dept
    example:
    emp_dept_10.xml
    emp_dept_20.xml
    emp_dept_30.xml
    each file will have the information for employees in different departmemts.
    We are using DBMS_XMLGEN package to generate XML.
    The reason I need to do this is to avoid executing the same query 200 times for generating the same output for different departments. Please let me know if it is practically possible to do this.
    Any input is greatly appreciated.
    Thanks a lot!!

    one solution i can think of is to use SQLX operator instead of dbms_xmlgen.
    here is a sample example.
    declare
      l_xmltype xmltype;
      l_deptno  emp.deptno%type;
    begin
      for i in (select * from emp order by deptno)
      loop
        select xmlconcat(
                    xmlelement("ename", i.ename)
                   ,xmlelement("sal", i.sal)
                   ,xmlelement("detpno", i.deptno))
          into l_xmltype from dual;
        dbms_output.put_line(l_xmltype.GetClobVal());
      end loop;
    end;
    /Now here you can open the query once, keep writing to the file till the deptno
    is same, when the deptno changes, close the file and open a new file with new
    deptno and start writing.
    Note : in this way you will have to add the xmlprolog manually to each of the file which should not be an issue. after opening the file add the prolog string manually.
    Hope this helps.

  • Loading from multiple flat files to same table using SQL Loader

    Hi Gurus,
    Can anyone please brief me the pros and cons of kicking of multiple sql loader sessions that reads multiple flat files but inserting it into just one table.
    The table is not partitioned. Avg record counts for each flat file is about 5-6 million.
    Oracle 11g,
    OS: Linux
    Regards
    Cherrish Vaidiyan

    Vaidiyan wrote:
    Hi Gurus,
    Can anyone please brief me the pros and cons of kicking of multiple sql loader sessions that reads multiple flat files but inserting it into just one table.Cherrish,
    Pros -> Faster loading of more data
    Cons -> Potential performance degradation
    Test to see how much resource consuming this task would be and do a priority comparison of that multi-multi load task with other stuff that will be happening in the database in the multi-multi load time so you could decide how to share resources in that time.

  • Compile multiple mxml file at same time

    hi
    i am working in flex with java.
    i am using more one flex file in my flex project.
    when i execute the project the ant compiled .mxml file only executed.
    the other .mxml files are not executed.
    i have use the destination id  same of two mxml files.
    the ant target is
    <target name="appcompile" depends="install">
      <mxmlc file="${flexsrc.home}/UserRegistration.mxml" context-root="/Reg" keep-generated-actionscript="true" services="${web.home}/WEB-INF/flex/services-config.xml" output="${catalina.home}/webapps/${app.name}/UserRegistration.swf">
       <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
        <include name="${web.home}/WEB-INF/lib/" />
        <include name="${flexsrc.home}/example/" />
       </compiler.library-path>
       <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
       <source-path path-element="${FLEX_HOME}/frameworks" />
      </mxmlc>
    </target>
    <target name="createHtmlWrapper" depends="appcompile">
      <html-wrapper application="${APP_ROOT}/UserRegistration.mxml" height="1000" width="1000"  output="${catalina.home}/webapps/${app.name}" swf="UserRegistration" />
    </target>
    the destination id is camp;
    the error is
    MessagingError message='Destination 'camp' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']
    anyone can help me
    regards
    athi

    It turned out that my Captivate file exceeded 50MB (the
    working “.cp” file) and this causes problems when
    outputting, they tell me at Captivate support, that weird
    corruptions happen. I tried removing the audio from the Flash after
    synchronizing the audio to screen activity, then saving a non-audio
    version, then importing it into Captivate, then importing the audio
    into Captivate. Make sure to check Options/Synchronize to project
    when you import the .swf. That solved the problem for me. Good
    luck!
    Lorin

  • Rules Problem with multiple XSD

    Hi,
    I've done a jdev project for SOA Suite 11g including only one Business Rules which could be call by a Webservice.
    When I used 2 differents XSD to define 1 input fact and 1 output fact, the rule engine failed with an UNEXPECTED element Error
    <fault>
    <faultType>0</faultType>
    <operationErroredFault>
    <part name="payload">
    <errorInfo>
    <errorMessage>unexpected element (uri:"http://www.arvato.fr/formatPivot", local:"CUSTOMER"). Expected elements are <{http://www.arvato.fr/formatPivot}ADDRESS>,<{http://www.arvato.fr/formatPivot}DedoublonnageRule>,<{http://www.arvato.fr/formatPivot}StatusRule></errorMessage>
    </errorInfo>
    </part>
    </operationErroredFault>
    </fault>
    When I use only one XSD file in my facts fou my input and outpout values. It runs Well.
    Here are the facts definition with Multiple XSD FIle :
    http://lh5.ggpht.com/_noQvj60LDl4/S4-J8DcFEkI/AAAAAAAAAKU/fAtlSMgFS_8/separatedSchemas.png
    Here are the facts definition with Single XSD FIle :
    http://lh6.ggpht.com/_noQvj60LDl4/S4-J78qnj0I/AAAAAAAAAKQ/U1JNnaJyK50/includedSchema.png
    Could you please answer me how to use multiple xsd file in facts ?
    Regards,
    Jerome.

    Hi,
    Does anybody have any idea ?
    Regards,
    Jerome

  • IOS device failed to get ip address on multiple wlan on the same anchor controller

    Dear Experts:
    in my implementation, we need 2 WLANs be served on the same anchor controller.
    WLAN1: wep/40bit, integration with NAC/OOB on anchor controller for guest wlan service.
    and guest account controlled by NACguest server.
    WLAN2: wep/40bit, no layer3 secuirty for temporary using.
    foreign controller: WiSM on v6.0.196.4 (also testing on 6.0.182.0)
    anchor controller: WLC4402 on v6.0.196.4
    on WLAN1:
    Windows7 client get ip address correctly.
    iOS (iPhone4 on 4.3.1/4.3.2, iPad2 on 4.3.1/4.3.2) can get ip address correctly on WLAN1.
    WLAN2, iOS device cannot get ip address.
    compare with debug message "debug clien mac" + "debug dhcp message enable"
    on both foreign and anchor controller.
    on foreign controller:
    PM state has changed from: DHCP_REQD (7) Change state to RUN (20) last state RUN (20)
    on anchor controller:
    PM state always stay on: DHCP_REQD (7) Change state to DHCP_REQD (7) last state DHCP_REQD (7)
    Enable/Disable DHCP Address Assignment Required is not work.
    Enable/Disable DHCP proxy is not work.
    Any hit this issue when get ip address failed in multiple WLANs on the same anchor controller?
    In attachment log file,
    DMZ.log: anchor controller on DMZ.
    S3p1.log: WiSM on v6.0.182.0
    S3p2.log: WiSM on v6.0.196.4
    client mac: 00:1f:3b:05:33:c1, Windows7 Client
    client mac: 58:55:ca:cf:d2:07, iPhone4 with 4.3.1,
    WLAN1 subnet: 10.61.246.0/23
    WLAN2 subnet: 10.61.248.0/23

    Hi, Nicolas:
    just checking the attachment for the run-config on foreign/anchor controller.
    DMZ_run.config  - anchor controller
    s3p1_run.config - WiSM on v6.0.182.0
    s3p2_run.config - WiSM on v6.0.196.4
    at this moment, we have disable the wlan 10 on foreign controller, and wlan 2 on foreign controller.
    Wilson...

  • JAXB Parsing Problem

    Hi, I am new to JAXB
    I have compiled my xsd file from Scehma Compiler and got "generated" package with Java files. But how can I compile all those java files and import it into my application.
    Do I have to manually compile each java files in "genereated" package or any other way to do.
    Thanks in advance.
    Regards
    Chintan

    U need to compile all the java files. as far as my knowledge is concerned, u will have an 'impl' directory in the 'generated' dir and 'runtime' dir in the 'impl' folder.
    u need to place all the java files in one folder and compile all of them together.
    or
    u can compile the files in the runtime folder first, then the ones in the impl folder and then files in the generated folder. but when i tried this way, i got many errors ... thats because when i try to compile the files in the impl folder... they use the files in the generated folder which by then r not compiled. so when i first compile the ones in the generated folder, they use the ones in the impl folder..
    so i placed all the java files in one folder and compiled them together.... any how, the classes placed in packages so, the class files will be oraganized

  • WSDL parsing failed

    Hello,
    I am getting this error while trying to connect to a 10.1.3 BPEL wsdl from my application. The error, wsdl, and the client code are mentioned below.
    Client Code
    If fails at the bold line below ..
                   URL url = new URL(wsdl);
                   WebServiceProxyFactory factory = new WebServiceProxyFactory();
                   WebServiceProxy proxy = factory.createWebServiceProxy(url);
                   //               get the Web Service Method from the Proxy
                   method = proxy.getMethod(methodName);
                   if ( method == null )
                        Logger.log( Logger.ERROR, "WsState: Cannot find method:"+methodName );
                        throw new Exception( "WsState: method not found" );
                   // Get params
                   NodeList     nl     = root.getElementsByTagName("param");
    Error
    oracle.j2ee.ws.client.WebServiceProxyException: WSDL parsing failed
         0,801: Invalid reference document import namespace: http://xmlns.oracle.com/EdgeClientCallback.
         at oracle.j2ee.ws.client.impl.DefaultWebServiceProxy.newInstanceFromService(DefaultWebServiceProxy.java:106)
         at oracle.j2ee.ws.client.WebServiceProxyFactory.createWebServiceProxyFromService(WebServiceProxyFactory.java:175)
         at oracle.j2ee.ws.client.WebServiceProxyFactory.createWebServiceProxy(WebServiceProxyFactory.java:148)
         at oracle.edge.tools.eflow.impl.WsState.init(WsState.java:130)
         at oracle.edge.tools.eflow.impl.WsState.<init>(WsState.java:103)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at oracle.edge.tools.eflow.EventFlow.loadXml(EventFlow.java:239)
         at oracle.edge.tools.eflow.EventFlow.reload(EventFlow.java:79)
         at oracle.edge.tools.eflow.EventFlow.<init>(EventFlow.java:74)
         at oracle.edge.rt.EventDispatcher.initPersistence(EventDispatcher.java:127)
         at oracle.edge.rt.EventProcessor.initOpMode(EventProcessor.java:121)
         at oracle.edge.rt.EventProcessor.<init>(EventProcessor.java:49)
         at oracle.edge.rt.EventProcessorContainer.init(EventProcessorContainer.java:106)
         at oracle.edge.rt.EdgeMain.start(EdgeMain.java:127)
         at oracle.edge.rt.EdgeServerServlet.init(EdgeServerServlet.java:59)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2231)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4617)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4541)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4730)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1019)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:649)
         at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:428)
         at com.evermind.server.Application.getHttpApplication(Application.java:512)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1975)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1894)
         at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:633)
         at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:302)
         at com.evermind.server.http.HttpServer.setSites(HttpServer.java:273)
         at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:180)
         at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2296)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:944)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
         at java.lang.Thread.run(Thread.java:595)
    Fri Jan 05 14:27:41 PST 2007<<
    WSDL
    <definitions name="EdgeClientCallback" targetNamespace="http://xmlns.oracle.com/EdgeClientCallback">

         <types>

         <schema>
    <import namespace="http://xmlns.oracle.com/EdgeClientCallback" schemaLocation="EdgeClientCallback.xsd"/>
    </schema>
    </types>

         <message name="EdgeClientCallbackRequestMessage">
    <part name="payload" element="tns:EdgeClientCallbackProcessRequest"/>
    </message>

         <message name="EdgeClientCallbackResponseMessage">
    <part name="payload" element="tns:EdgeClientCallbackProcessResponse"/>
    </message>

         <portType name="EdgeClientCallback">

         <operation name="process">
    <input message="tns:EdgeClientCallbackRequestMessage"/>
    <output message="tns:EdgeClientCallbackResponseMessage"/>
    </operation>
    </portType>

         <binding name="EdgeClientCallbackBinding" type="tns:EdgeClientCallback">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

         <operation name="process">
    <soap:operation style="document" soapAction="process"/>

         <input>
    <soap:body use="literal"/>
    </input>

         <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    </binding>

         <service name="EdgeClientCallback">

         <port name="EdgeClientCallbackPort" binding="tns:EdgeClientCallbackBinding">
    <soap:address location="http://pdalmia-US.us.oracle.com:8888/orabpel/default/EdgeClientCallback/1.0"/>
    </port>
    </service>

         <plnk:partnerLinkType name="EdgeClientCallback">

         <plnk:role name="EdgeClientCallbackProvider">
    <plnk:portType name="tns:EdgeClientCallback"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>

    Hi,
    You may want to look at the samples provided on the Web Services Developer's Guide.
    see "Examples of Web Service Clients that use DII".
    As the WSDL does have a schema import, the issue may be in accessing the document "EdgeClientCallback.xsd" - you may want to verify that the expected schema can be found on the URL you are using for your WSDL, when you manually place the schema name on the right context root.
    Hope it helps,
    Eric

  • Generate xml from xsd file

    i would like to make my java application automaticaly convert a given .xsd file to an .xml one.
    i know that with jdev you can generate an xml file from xsd one, and i want my application do the same thing.
    i know also that i can use JAXB: first i bind the xsd file then i marshall the java class created to obtain xml. But i dont know how to do it.
    is there a simple way to use the "things" behind the jdev xml generation from xsd.

    Please refer
    http://www.developer.com/java/web/article.php/3722211/Using-JAXB-in-JDeveloper-1013.htm
    JDeveloepr 11g includes JAXB 2.0.

Maybe you are looking for