[From nobody Sat Feb 26 08:04:38 2005 Return-Path: <jdom-interest-bounces@jdom.org> Delivered-To: el@grit.de Received: from localhost (localhost [127.0.0.1]) by mail.grit.de (Postfix) with ESMTP id A026232F65 for <el@grit.de>; Sat, 26 Feb 2005 17:04:13 +0100 (CET) Received: from servlets.kattare.com (servlets.com [69.59.195.135]) by mail.grit.de (Postfix) with ESMTP id 44B0932EE6 for <el@grit.de>; Sat, 26 Feb 2005 17:04:12 +0100 (CET) Received: from servlets.kattare.com (localhost [127.0.0.1]) by servlets.kattare.com (8.12.10/8.12.11) with ESMTP id j1QFxode008387; Sat, 26 Feb 2005 07:59:53 -0800 Received: from csmtp.b-one.net (csmtp.b-one.net [195.47.247.21]) by servlets.kattare.com (8.12.10/8.12.11) with ESMTP id j1QFxmEU014250 for <jdom-interest@jdom.org>; Sat, 26 Feb 2005 07:59:49 -0800 Received: from [10.0.1.129] (unknown [84.217.11.189]) by csmtp.b-one.net (Postfix) with ESMTP id 221F2FB9A5; Sat, 26 Feb 2005 16:59:44 +0100 (CET) Message-ID: <42209CEE.2070506@austers.se> Date: Sat, 26 Feb 2005 16:59:42 +0100 From: Per Norrman <per.norrman@austers.se> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: sv, en-us, en MIME-Version: 1.0 To: BenedictPA@aol.com Subject: Re: [jdom-interest] SAX Schema Validations References: <da.20379d2a.2f51602e@aol.com> In-Reply-To: <da.20379d2a.2f51602e@aol.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: jdom-interest@jdom.org X-BeenThere: jdom-interest@jdom.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: JDOM Mailing List for General Issues and Updates <jdom-interest.jdom.org> List-Unsubscribe: <http://www.jdom.org/mailman/listinfo/jdom-interest>, <mailto:jdom-interest-request@jdom.org?subject=unsubscribe> List-Archive: <http://www.jdom.org/pipermail/jdom-interest> List-Post: <mailto:jdom-interest@jdom.org> List-Help: <mailto:jdom-interest-request@jdom.org?subject=help> List-Subscribe: <http://www.jdom.org/mailman/listinfo/jdom-interest>, <mailto:jdom-interest-request@jdom.org?subject=subscribe> Sender: jdom-interest-bounces@jdom.org Errors-To: jdom-interest-bounces@jdom.org X-Virus-Scanned: by AMaViS 0.3.12pre8 BenedictPA@aol.com skrev: > If anyone can answer this, please do. > > I am using JDOM for document building and parsing as well as validating. > I have a requirement that people upload XML files and I have to perform > validation on them against a schema. Does the schema HAVE to be a public > URL? I'd rather have the schema as a private file in my Java resource > bundle -- but it seems setProperty requires an external URL. > > parser.setProperty( > > "http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation", > "url"); I think you are being confused by the name of the property. The second argument should be an URL that resolves to the location where the schema can be picked up, a file:xyz, jar:xyz, etc. It does not have to "public". /pmn _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com ]