Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint XML Schema    Compiling XML schema using JAXB 2.0.1

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Member
Posted
Hello, can anyone clear my doubt plz....

In my XML schema, there is an element "DEFAULT" which is the child element of "FIELD" element and also an attribute "DEFAULT",which attribute of "FIELD" element. But when I compile it in JAXB , to get the derived JAVA classes the following error is displayed....

*********************************************
C:\jaxb_2.0.1>xjc new.xsd
parsing a schema...
[ERROR] Property "DEFAULT" is already defined. line 106 of file:/C:/jaxb_2.0.1/new.xsd

[ERROR] The following location is relevant to the above error
line 183 of file:/C:/jaxb_2.0.1/new.xsd

Failed to parse a schema.

************************************************
Here line 106 contains attribute "DEFAULT" and line 183 contains element "DEFAULT".
I have created the schema as per the original XML document which consists of an element and attribute "DEFAULT" as mentioned above. This XML document cannot be modified since it is confidential.

So can anyone please give the remedy for this problem.
 
Posts: 2 | Registered: February 01, 2009Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint XML Schema    Compiling XML schema using JAXB 2.0.1