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 Shashank <sh...@icmg.nu> on 2001/10/30 08:52:03 UTC
validation of XML file
I have a DTD file which has element like this
<!Element softpkg
(title
|author
|idl ?
|extension
)*>
in XML file I tried putting up idl tag twice and it validates
against the DTD.
This means if in Element definition, like in idl(we have ?) that
means the element can appear (if appears ) only once.
But element definiiton sofpkg says any element can appear, any
number of times. (has *)
Does this mean element idl can appear any number of times and is
valid??
or this is for any other element for which constraint is not
mentioned?
clear my doubts.
take care,
Shashank
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Hi ! I got it thanks anyway
Posted by Shashank <sh...@icmg.nu>.
Bob Foster wrote:
> Not exactly a Xerces question, but here is an answer.
>
> Any element in the *-qualified list can appear any number of times and the ?
> has absolutely no effect. (a|b)*, (a?|b?)*, (a?|b)* and (a|b?)* all describe
> the same grammar.
>
> Bob
>
> ----- Original Message -----
> From: "Shashank" <sh...@icmg.nu>
> To: <xe...@xml.apache.org>
> Sent: Tuesday, October 30, 2001 1:52 AM
> Subject: validation of XML file
>
> >
> > I have a DTD file which has element like this
> >
> > <!Element softpkg
> > (title
> > |author
> > |idl ?
> > |extension
> > )*>
> >
> >
> > in XML file I tried putting up idl tag twice and it validates
> > against the DTD.
> >
> > This means if in Element definition, like in idl(we have ?) that
> > means the element can appear (if appears ) only once.
> > But element definiiton sofpkg says any element can appear, any
> > number of times. (has *)
> >
> > Does this mean element idl can appear any number of times and is
> > valid??
> > or this is for any other element for which constraint is not
> > mentioned?
> >
> > clear my doubts.
> >
> > take care,
> > Shashank
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
--
-----------------------------------------------------------
Shashank
iCMG
India Development Center
Millennium Towers
Queens Road, Bangalore - 51
Ph:91-80-286 5620 Fax:91-80-286 5623
-------------------------------------------------------------
Architecting Software Components for EAI
http://www.iCMGworld.com/
-------------------------------------------------------------
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you are not
the intended recipient, please contact the sender by reply e-mail and
destroy all copies of the original message.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: validation of XML file
Posted by Bob Foster <bo...@webgain.com>.
Not exactly a Xerces question, but here is an answer.
Any element in the *-qualified list can appear any number of times and the ?
has absolutely no effect. (a|b)*, (a?|b?)*, (a?|b)* and (a|b?)* all describe
the same grammar.
Bob
----- Original Message -----
From: "Shashank" <sh...@icmg.nu>
To: <xe...@xml.apache.org>
Sent: Tuesday, October 30, 2001 1:52 AM
Subject: validation of XML file
>
> I have a DTD file which has element like this
>
> <!Element softpkg
> (title
> |author
> |idl ?
> |extension
> )*>
>
>
> in XML file I tried putting up idl tag twice and it validates
> against the DTD.
>
> This means if in Element definition, like in idl(we have ?) that
> means the element can appear (if appears ) only once.
> But element definiiton sofpkg says any element can appear, any
> number of times. (has *)
>
> Does this mean element idl can appear any number of times and is
> valid??
> or this is for any other element for which constraint is not
> mentioned?
>
> clear my doubts.
>
> take care,
> Shashank
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org