Return-Path: Delivered-To: apmail-xml-xerces-j-user-archive@www.apache.org Received: (qmail 51684 invoked from network); 9 Aug 2004 19:23:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Aug 2004 19:23:26 -0000 Received: (qmail 61092 invoked by uid 500); 9 Aug 2004 19:23:19 -0000 Delivered-To: apmail-xml-xerces-j-user-archive@xml.apache.org Received: (qmail 61069 invoked by uid 500); 9 Aug 2004 19:23:19 -0000 Mailing-List: contact xerces-j-user-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: xerces-j-user@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list xerces-j-user@xml.apache.org Received: (qmail 61057 invoked by uid 99); 9 Aug 2004 19:23:19 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_HELO_PASS X-Spam-Check-By: apache.org Received: from [206.80.109.179] (HELO mail1.yozons.com) (206.80.109.179) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 09 Aug 2004 12:23:17 -0700 Received: from rasta (soho2.yozons.com [206.80.109.178] (may be forged)) (authenticated bits=0) by mail1.yozons.com (8.12.8/8.12.8) with ESMTP id i79JNFX5006343 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Mon, 9 Aug 2004 12:23:16 -0700 Message-ID: <0fc301c47e46$578570f0$3201a8c0@rasta> Reply-To: "David Wall" From: "David Wall" To: References: <769891DF3B4C0A4EB97665178EE1344F0628B6@cptexch01.csg.csgsystems.com> Subject: Re: Validating with XML Schema using local schema files Date: Mon, 9 Aug 2004 12:23:24 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > You should specify your governing schema in an instance document (as opposed to code): I don't think that's really the way to go overall since the data can move and the location of the schema may not always be the same depending on where the XML data is being validated. This is especially true in applications in which the XML data is being sent from one place to another, or in SOAP calls in which the application that produces the XML data cannot be trusted to include a reference to the schema that I (as the recipient) should use to validate it. The schemas are mine; they do not belong to any application that produces the data. I did learn that my syntax was wrong (Thanks George for pointing out that the targetNamespace value needed to be in front of the name of the schema file -- that was my oversight). David --------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org For additional commands, e-mail: xerces-j-user-help@xml.apache.org