Hi Catherina,
If you substitute "2000/10" for "1999" in your declarations for the xsi binding in the instance document and for xsd in your schema, then all should be well. Xerces is expecting documents to reference the October Schema CR, not the April 2000 working draft (which corresponds to the 1999 namespace). Hope that helps, Neil Neil Graham XML Parser Development IBM Toronto Lab Phone: 416-448-3519, T/L 778-3519 E-mail: [EMAIL PROTECTED] ibrahim <[EMAIL PROTECTED]> on 02/12/2001 09:47:17 AM Please respond to [EMAIL PROTECTED] To: [email protected] cc: Subject: Re: TargetNamespace Problem Hi, I'm trying to use namespace for my XML document here. I tried putting in the example of TNS documents plus binding and elementFormDefault to be 'qualified' : TNS.xml: <?xml version="1.0" encoding="UTF-8"?> <dv:main xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:dv="http://MyDomain.com/TNS" xsi:schemaLocation="http://MyDomain.com/TNS TNS.xsd"> <dv:child /> </dv:main> TNS.xsd: <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns="http://MyDomain.com/TNS" targetNamespace="http://MyDomain.com/TNS" elementFormDefault="qualified"> <xsd:element name="main" > <xsd:complexType content="elementOnly"> <xsd:element name="child" type="child" minOccurs="0" maxOccurs="unbounded" /> </xsd:complexType> </xsd:element> <xsd:complexType name="child" content="empty" /> </xsd:schema> But the parser gives erros saying that "dv:main" and "dv:child" must be declared. What's wrong? thanks a lot for your help, cath --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
