Declare an element using type . Declare another element with a complexType . Set type attribute of the element. Ensure the schema is invalid.

http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#cElement_Declarations


TEST typedef00501m2 - complexType and type are mutually exclusive (invalid schema)

FILES

ItemValue
title typedef00501m2 - complexType and type are mutually exclusive (invalid schema)
name typedef00501m2
source ../typeDef00501m2.xsd
schemaName ../typeDef00501m2.xsd
keywords schema negative
package javasoft.sqe.tests.elemdecl.typedef.typedef00501m.typedef00501m2


%Copyright% © 2017, 2020 Oracle and/or its affiliates. All rights reserved.