hi all, i'm new in this mailing list. I'm using xerces 1.2.3. this is my simple schema
<xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:per="http://localhost/~devel/per.xsd" targetNamespace="http://localhost/~devel/per.xsd"> <xsd:element name="listaNomi"> <xsd:complexType> <xsd:sequence> <xsd:element ref="per:persona" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="persona"> <xsd:complexType> <xsd:sequence> <xsd:element name="nome" type="xsd:string" /> <xsd:element name="cognome" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> and this is my very simple xml file: <?xml version="1.0"?> <listaNomi xmlns="http://localhost/~devel/per.xsd" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:schemaLocation="http://localhost/~devel/per.xsd http://localhost/~devel/per.xsd"> <persona> <nome>luca</nome> <cognome>rasconi</cognome> </persona> </listaNomi> when i try to validate the xml file, application teel me that all the element present in the xml document must be declared. what's the problem? thank in advance. ______________________________________________________________________ Do You Yahoo!? Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it
