Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » XSD Help( The type attribute cannot be present with either simpleType or complexType. )
XSD Help [message #1292748] Sat, 12 April 2014 02:45 Go to next message
Abhinav Singh is currently offline Abhinav SinghFriend
Messages: 1
Registered: April 2014
Junior Member
Hey Guys,
I have written the following XSD file with the help of W3Schools. But while validating the file I'm getting the following error:

The type attribute cannot be present with either simpleType or complexType.

I have attached Persons.xml and Persons.xsd in the message.
Please have a look and suggest any changes. I'm not able to figure out what's
the problem with my syntax.

Thanks in advance
Re: XSD Help [message #1293351 is a reply to message #1292748] Sat, 12 April 2014 14:59 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Abhinav,

This newsgroup is for helping use Eclipse's XSD API/model, not for
general questions about XML Schema.


On 12/04/2014 4:37 PM, Abhinav Singh wrote:
> Hey Guys,
> I have written the following XSD file with the help of W3Schools. But
> while validating the file I'm getting the following error:
>
> The type attribute cannot be present with either simpleType or
> complexType.
> I have attached Persons.xml and Persons.xsd in the message.
> Please have a look and suggest any changes. I'm not able to figure out
> what's the problem with my syntax.
>
> Thanks in advance
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:XSD Schema Editor Question
Next Topic:Empty Closed Element
Goto Forum:
  


Current Time: Wed Sep 25 17:38:22 GMT 2024

Powered by FUDForum. Page generated in 0.03170 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top