Return-Path: Delivered-To: apmail-xml-commons-dev-archive@www.apache.org Received: (qmail 8144 invoked from network); 16 Sep 2005 21:57:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Sep 2005 21:57:12 -0000 Received: (qmail 24409 invoked by uid 500); 16 Sep 2005 21:57:12 -0000 Delivered-To: apmail-xml-commons-dev-archive@xml.apache.org Received: (qmail 24292 invoked by uid 500); 16 Sep 2005 21:57:11 -0000 Mailing-List: contact commons-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list commons-dev@xml.apache.org Delivered-To: moderator for commons-dev@xml.apache.org Received: (qmail 96992 invoked by uid 99); 16 Sep 2005 19:36:28 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of glapouch@redhat.com designates 66.187.233.31 as permitted sender) Subject: Re: XML Schemas From: Gregory Lapouchnian To: dims@apache.org Cc: Patrick Smith , commons-dev@xml.apache.org In-Reply-To: <19e0530f05091509335bb6bc05@mail.gmail.com> References: <1126800290.3876.41.camel@toejam.toronto.redhat.com> <19e0530f05091509335bb6bc05@mail.gmail.com> Content-Type: text/plain Organization: Red Hat Canada Date: Fri, 16 Sep 2005 15:36:21 -0400 Message-Id: <1126899381.3865.11.camel@toddy.toronto.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-16) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Davanum, Thanks for pointing us at XmlSchema. It looks like something we could really use for our project. I've played around with it for a bit but I keep getting exceptions when I try to create an XmlSchema object using the SchemaBuilder class. I've tried a number of different schemas, some J2EE ones and some random ones Google found for me and all seem to throw one exception or other. Is there an example somewhere which would show the proper usage of SchemaBuilder? I found the thread on axis-dev regarding the donation of this module to Axis, however, it was more than two years ago. Is this project/module still being supported or used by any other Apache project? Thanks in advance, Greg Lapouchnian. On Thu, 2005-09-15 at 12:33 -0400, Davanum Srinivas wrote: > Try xmlschema... > > run "svn co http://svn.apache.org/repos/asf/webservices/commons/trunk/XmlSchema/" > to get the files. > > -- dims > > On 9/15/05, Patrick Smith wrote: > > Hi, > > > > My teammate and I are currently working on a web based XML editor (that > > extracts XML files from rars/jars/wars and ears) to configure > > applications running on an application server while they're still > > deployed. > > > > One of the editor's views is a form based view. You can take a look at a > > simple mock-up of the UI we are building at: > > http://people.redhat.com/pasmith/third.html > > > > We are required to validate the XML against its associated schemas. > > Though we also need to get information from the schema for the UI. For > > example, if the schema specifies that only 3 specific elements can be > > added as children to an element, then the form will have a drop down > > menu with only those 3 options. > > > > My question is, are there any existing projects or APIs available that > > will help in loading a schema and extracting such information. > > > > At the moment we are already using Xerces for our XML processing and > > validation. > > > > Thanks a lot. > > > > Patrick Smith > > > > > > -- Gregory Lapouchnian Red Hat Canada