Results 1 to 2 of 2
Thread: JAXB type help!!!
- 04-23-2012, 04:59 AM #1
Member
- Join Date
- Feb 2012
- Posts
- 10
- Rep Power
- 0
JAXB type help!!!
Hi all, I really need some help here... I'm creating a schema at the moment and I'm stuck in defining custom classes. So take the code down below:
I want the positions element to be of type "PositionType". Position type is defined in the geo.xsd. How do I make it so I can do the type="geo:PositionType" so that it will show up in the Java file that positions is of type PositionType...Java Code:<?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:geo="http://geoEditor" xmlns:jxb="http://java.sun.com/xml/ns/jaxb" jxb:version="2.0"> <xsd:element name="case" type="Case"/> <xsd:complexType name="Case"> <xsd:sequence> <xsd:element name="planType" type="xsd:string"/> <xsd:element name="positions" type="xsd:string" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:schema>
- 04-23-2012, 10:53 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,476
- Rep Power
- 16
Similar Threads
-
Trying to convert Java Date to type int to fit in mysql table with field type int(11)
By fortwnty420 in forum New To JavaReplies: 4Last Post: 08-01-2011, 10:29 AM -
jaxb and xml exstenstion
By Daniela in forum XMLReplies: 0Last Post: 07-28-2011, 06:41 PM -
Jaxb
By Paul Richards in forum XMLReplies: 1Last Post: 08-03-2009, 09:56 PM -
JAXB Marshalling
By akbar4ums in forum XMLReplies: 1Last Post: 12-20-2008, 04:39 AM -
Custom XML to Java Type Binding using JAXB
By surajkumar in forum XMLReplies: 0Last Post: 09-02-2008, 12:32 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks