Can you have 2 local elements with the same name?

Is this valid?

I looked it up in the spec and I think it said the
duplicate name validation only applies to global types
/ elements.

<?xml version="1.0" encoding="UTF-8"?>
<schema
targetNamespace="http://www.test.com/postcardstruct"
    xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:post="http://www.test.com/postcardstruct">
    <complexType name="Postcard_Message_Type">
        <sequence>

            <element name="Post_Transaction"
type="string" />
            <element name="Post_Transaction"
type="string" />

        </sequence>
    </complexType>
</schema>


__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

Received on Monday, 19 November 2001 15:39:03 UTC