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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:33:14+00:00 2026-05-15T08:33:14+00:00

I have an xsd (for basecamp xml) that contains <xsd:complexType name=ProjectType> <xsd:sequence> <xsd:element name=announcement

  • 0

I have an xsd (for basecamp xml) that contains

<xsd:complexType name="ProjectType">
    <xsd:sequence>
        <xsd:element name="announcement"
                     type="TypedNilableStringElementType"
                     maxOccurs="1" 
                     minOccurs="1">
        </xsd:element>
        <xsd:element name="created-on"
                     type="TypedDateElementType" 
                     maxOccurs="1"
                     minOccurs="1">
        </xsd:element>
        <xsd:element name="id"
                     type="TypedIntegerElementType" 
                     maxOccurs="1"
                     minOccurs="1">
        </xsd:element>
        <xsd:element name="last-changed-on"
                     type="TypedDateTimeElementType" 
                     maxOccurs="1"
                     minOccurs="1">
        </xsd:element>
        <xsd:element name="name" 
                     type="xsd:string" 
                     maxOccurs="1"
                     minOccurs="1">
        </xsd:element>
        <xsd:element name="show-announcement"
                     type="TypedBooleanElementType" 
                     maxOccurs="1"
                     minOccurs="1">
        </xsd:element>
        <xsd:element name="show-writeboards"
                     type="TypedBooleanElementType" 
                     maxOccurs="1"
                     minOccurs="1">
        </xsd:element>
        <xsd:element name="start-page" 
                     type="xsd:string"
                     maxOccurs="1" 
                     minOccurs="1">
        </xsd:element>
        <xsd:element name="status" 
                     type="xsd:string" 
                     maxOccurs="1"
                     minOccurs="1">
        </xsd:element>
        <xsd:element name="company"
                     type="SimpleCompanyType" 
                     maxOccurs="1" 
                     minOccurs="1">
        </xsd:element>
    </xsd:sequence>
</xsd:complexType>

and

<xsd:element name="project" 
             type="ProjectType">
</xsd:element>

I’m looking at http://java.sun.com/javaee/5/docs/tutorial/doc/bnbah.html and can’t understand what I’m doing differently from the sample schema in Table 17-13 where there is an element named purchaseOrder of type PurchaseOrderType. According to the tutorial, running xjc on the schema, one will get a PurchaseOrder.java interface and PurchaseOrderType.java interface.

When I run xjc on my schema I only get a ProjectType.java class, and when the xml actually consists of a single <project ...></project> element, this won’t parse because there is no Project.java class/interface to match.

  • 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-15T08:33:15+00:00Added an answer on May 15, 2026 at 8:33 am

    Found the answer, finally (thanks google 🙂

    http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following XSD code: <xsd:complexType name=questions> <xsd:sequence> <xsd:element name=location type=location/> <xsd:element name=multipleChoiceInput type=multipleChoiceInput
I have some XSD that looks something like this: <element name=a> <complexType> <sequence> <element
I have a XSD file like below: <element name=finder-def minOccurs=0 maxOccurs=unbounded> <complexType> <attribute name=name
I have an xsd that looks like this (snippet): <xs:complexType name=IDType> <xs:choice minOccurs=1 maxOccurs=2>
I have a XSD simple type that should match UUIDs: <simpleType name=UuidT> <restriction base=string>
I have an XSD that gives me the structure of some xml-flavour. Are there
I have an XSD file that contains the following... <xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema elementFormDefault=qualified id=OTA2003A targetNamespace=http://www.opentravel.org/OTA/2003/05
I have an XSD with a field called customer that is minOccurs=0 and maxOccurs=unbounded.
I have an XSD (XML Schema) which contains multiple files. There's a catalog.xml in
I have an xsd document that starts with: <?xml version=1.0 encoding=UTF-8?> <xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema> <xs:import

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.