You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Michael Glavassevich <mr...@ca.ibm.com> on 2011/01/02 21:44:58 UTC

Re: check for element name starts with lower case

Mukul Gandhi <mu...@apache.org> wrote on 12/30/2010 05:06:50 AM:

> On Thu, Dec 30, 2010 at 3:08 AM, joe j robles <jo...@gmail.com>
wrote:
> > 1a) All element names must begin with lower case
> > 1b) All the complex types use the <all> order indicator instead of
> > <sequence>
> >
> > How to accomplish this using xerces? If not, which parser to use?
>
> You can try using SAX or/and DOM APIs to read the XML schema
> documents, and do necessary checks on your schema documents.

... or load it into an XSModel [1] if you'd rather use a more XML Schema
centric API.

Thanks.

[1]
http://xerces.apache.org/xerces2-j/javadocs/xs/org/apache/xerces/xs/XSModel.html

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org