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 6586553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:48:16+00:00 2026-05-25T16:48:16+00:00

Executing a xjc command on these xsd files returns a Two declarations cause a

  • 0

Executing a “xjc” command on these xsd files returns a Two declarations cause a collision in the ObjectFactory class because there are 2 elements named “Scale” and “scale”.

According to this page, this problem may be solved by customizing the xsd files with <factoryMethod>.

Do you know how to do that? Do you have an example of binding file to do that?

  • 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-25T16:48:17+00:00Added an answer on May 25, 2026 at 4:48 pm

    You can use the bindings tag. Set the schemaLocation attribute to the location of a particular xsd. The child tags, schemaBindings and package, then define a new package namespace for that xsd. Below is the bindings file I used with xjc a while ago. If it still works, great. If not, example =).

    <?xml version="1.0" ?>
    <bindings xmlns="http://java.sun.com/xml/ns/jaxb" version="2.1"
          xmlns:kml="http://www.opengis.net/kml/2.2"
          xmlns:atom="http://www.w3.org/2005/Atom">
    
      <bindings schemaLocation="ogckml22.xsd">
        <schemaBindings>
          <package name="net.opengis.kml"/>
        </schemaBindings>
      </bindings>
      <bindings schemaLocation="kml22gx.xsd">
        <schemaBindings>
          <package name="net.opengis.kml.ex"/>
        </schemaBindings>
      </bindings>
      <bindings schemaLocation="atom-author-link.xsd">
        <schemaBindings>
          <package name="org.w3c.atom"/>
        </schemaBindings>
      </bindings>
      <bindings schemaLocation="xAL.xsd">
        <schemaBindings>
          <package name="org.oasis.xal"/>
        </schemaBindings>
      </bindings>
      <bindings scd="kml:scale">
        <class name="scaleliteral"/>
      </bindings>
      <bindings scd="kml:snippet">
        <class name="snippetliteral"/>
      </bindings>
      <bindings scd="kml:Snippet">
        <property name="snippetDeprecated"/>
      </bindings>
      <bindings scd="atom:link">
        <property name="atomLink"/>
      </bindings>
    </bindings>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

while executing the following query, i get an error that there's an error in
In Bash I'm executing a command and putting the result in a variable like
I am executing a diff command in perl . my @lines = `/usr/local/bin/diff -udr
There is a top level pom.xml which calls two sub modules as below: <modules>
When executing: path=os.path.dirname(__file__)+'/log.txt' log=open(path,w,encoding='utf-8') I get: log=open(path,'w',encoding='utf-8') File C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, line 1203, in __init__
When executing some command(let's say 'x') from cmd line, I get the following message:
Im executing query but there is an error: Could not allocate space for object
I Use XJC tool to generate Java classes for my XSD schema. When I
When executing Mathematica's NullSpace command on a symbolic matrix, Mathematica makes some assumptions about
By executing the following command that will list out all indexes found in my

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.