I have tried. using external-schemaLocation. Note that it hasn't complained about the gift element being "not declared", and is "aware" that the contents of gift should be "birthday". Based on that I am assuming that it has found the schema
-----Original Message----- From: Rahul Srivastava [mailto:[EMAIL PROTECTED] Sent: 02 November 2001 06:11 To: [EMAIL PROTECTED] Subject: Re: xsd schema problem Though there is nothing wrong with your schema/instance file. The problem here is the parser is unable to resolve the namespace in the instance file to a grammar, as it can't find your schema file. So, if you specify a schemaLocation in your instance file, things may work. <gift xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:myschema schemaFile.xsd"> <birthday>2001-01-10</birthday> </gift> Other way can be to use external-schemaLocation property of xerces-j. This is not yet implemented in xerces2-j. Cheers, Rahul. Sun Microsystems, Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
