schemagen « jaxb « Java XML Q&A

Home
Java XML Q&A
1.convert
2.Development
3.document
4.dom
5.dom4j
6.dtd
7.element
8.jaxb
9.jaxp
10.jdom
11.jsoup
12.namespace
13.Node
14.parse
15.parser
16.pdf
17.sax
18.schema
19.stax
20.tag
21.transform
22.Validation
23.xalan
24.xmlbeans
25.xpath
26.xsd
27.xslt
28.xstream
Java XML Q&A » jaxb » schemagen 

1. schemagen.exe doesn't skip @XmlTransient annotated class    stackoverflow.com

I annotated a XmlAdapter class like so:

@XmlTransient
public class DateTimeXmlAdapter extends XmlAdapter<String, DateTime> {
but schemagen.exe generates
<xs:complexType name="xmlAdapter" abstract="true">
    <xs:sequence/>
  </xs:complexType>
so does't skip the class, which was what I ...

2. prevent schemagen from adding the super-class to the schema?    stackoverflow.com

how do i prevent schemagen from adding the super-class to the schema? I have tried using XMLTransient on the super-class, and on its fields but they still show up in the schema ...

3. JAXB and validation against parts of a schema with schemagen?    stackoverflow.com

A very generalized and simplified scenario description:

  • Application builds JAXB instances through UI,
  • The JAXB instances are built in different steps are composed in the end,
  • As this is done, I must perform ...

4. Tool for creating a JAXB java class out of xml schema (reverse schemagen)?    stackoverflow.com

How to create a JAXB java class out of a xml schema using a utility? I don't like reverse-engineering of several huge XSD-files to a JAXB-compliant java class. I know there's the jdk ...

5. Using Jaxab SchemaGen    stackoverflow.com

i am working on Jaxb 2.x and able to unmarshel XML doc in to Java component but when i am trying to create schema from my existing java classes its ...

6. creating XSD using jaxb schemagen    stackoverflow.com

i am learning JAXb 2.0 and is new to it. i am trying to generate XSD based on y POJO classes using schemagen and for simple classes it working fine but when ...

7. Question about Jaxb 2.x SchemaGen    stackoverflow.com

i am trying to generate schema using jaxb from my exisitng POJO classes and till now its working fine now i have a requirement where i need to declare a attribute ...

8. JAXB ignoring XmlElement directives    stackoverflow.com

I have a problem generating the schema for a class I have. What I have is:

@XmlRootElement

@XmlAccessorType(XmlAccessType.FIELD)

public Class User {

....

@XmlElement(required = true)

protected String name;

....

}
Now, when I generate the schema using schemagen the line ...

9. A xml schema created by "Schemagen" of Ant task can customize any more?    stackoverflow.com

Now, I have two Java classes like this.

public class HogeDomain {

    private User userDomain;

    public HogeDomain() {
    }

     ...

10. schemagen ant task ignores package-info.java    stackoverflow.com

The scenario is the following: I have a java package (myapp.config) that contains all my JAXB-annotated classes, from which I'd like to generate an XML schema file. In the package, there ...

11. Problem Creating Schema Using @XmlElementRef    stackoverflow.com

I'm trying to duplicate a bit of schema by starting with Java and using schemagen (long story). The schema looks like this:

<xsd:element name="Responses">
   <xsd:complexType>
      ...

12. jaxb schemagen ant task and JDK 1.6?    stackoverflow.com

I've just killed the better part of this afternoon trying to call JAXB's schemagen from Ant. No matter what distribution I use (currently, jaxb-ri-20110512), I end up with the same result: ... [schemagen] ...

13. JAXB JXC generates schema for enums regardless of @XmlTransient    stackoverflow.com

Using the JXC schema generation ant task, I can't seem to get it to ignore an enum. I have several enums that are used internally to denote type or minor configuration ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.