Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6189165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:22:46+00:00 2026-05-24T02:22:46+00:00

I want to create a java classes from the xsd using xjc ant task.

  • 0

I want to create a java classes from the xsd using xjc ant task. Most of it works ok. I need it not to go through and because it already has mapping done.
Here is xsd:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="urn:oasis:names:tc:opendocument:xmlns:digitalsignature:1.0"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:dsig="urn:oasis:names:tc:opendocument:xmlns:digitalsignature:1.0"
   xmlns:xmldsig="http://www.w3.org/2000/09/xmldsig#" 
   xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" 
   elementFormDefault="qualified"
  >
    <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" 
       schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd" />
    <xs:import namespace="http://uri.etsi.org/01903/v1.3.2#" 
       schemaLocation="http://uri.etsi.org/01903/v1.3.2/XAdES.xsd" />
    <xs:import namespace="http://uri.etsi.org/01903/v1.4.1#" 
       schemaLocation="http://uri.etsi.org/01903/v1.4.1/XAdESv141.xsd" />
    <xs:element name="document-signatures">
        <xs:complexType>
            <xs:sequence minOccurs="1" maxOccurs="unbounded">
                <xs:element ref="xmldsig:Signature" />
            </xs:sequence>
        </xs:complexType>
    </xs:element>
 </xs:schema>

xjc goes through all imports and creates binding classes. But I already have those. So how to inform xjc to use already created bindings in the classpath?
For xades implementation I’ll use xades4j library

Thanks,

Vidmantas

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T02:22:47+00:00Added an answer on May 24, 2026 at 2:22 am

    You can use episode files to do modular schema compilation:

    • JAXB – Creating modules for reuse
    • http://weblogs.java.net/blog/kohsuke/archive/2006/09/separate_compil.html?force=741
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a Java-based website that will execute completely untrusted code from
I want to create application to fetch the current location data using Java script.
I want to create a splash screen for my Java application. I managed to
I want to create such object in Java that will contain some dispatcher function
I want to create a self-signed cert with the SAN field (subject alternative name)
I want to create a system for testing students on Drupal. For example we
I want to create an enum-like set of strings in a way that will
I want to create a simple ProgressDialog in my Activity. I created it like
I have an app in java that is nothing but a remote server.The remote
here is the structure of my project. proj ---src ----main ----java ----Main.java ----resources ----res.txt

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.