<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'dtd question' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'dtd question' posted on the 'XML Development' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 18:53:47 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 18:53:47 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>dtd question</title>
      <link>http://www.programmersheaven.com/mb/xml/371859/371859/dtd-question/</link>
      <description>can i specify fixed number of children in dtd?&lt;br /&gt;
&lt;br /&gt;
For example &amp;lt;!ELEMENT book (pages)*&amp;gt;&lt;br /&gt;
I want the number of pages to be exactly or less than 100 instead of 0 or more.&lt;br /&gt;
&lt;br /&gt;
Can i achieve the above?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Vamshi&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/371859/371859/dtd-question/</guid>
      <pubDate>Tue, 13 May 2008 02:44:24 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>Re: dtd question</title>
      <link>http://www.programmersheaven.com/mb/xml/371859/374350/re-dtd-question/#374350</link>
      <description>We can't specify fixed number of children in DTD...for that you can use XML Schema.in Schema,there are attributes 'minOccurs' and 'maxOccurs' attributes.&lt;br /&gt;
&lt;br /&gt;
example :&lt;br /&gt;
if we have root element &amp;lt;mail&amp;gt; and we reguired child &amp;lt;to&amp;gt; minimum 1 time and maximum 100...we can try it by bellow code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;
&amp;lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&amp;gt;&lt;br /&gt;
  &amp;lt;xs:element name="mail"&amp;gt;&lt;br /&gt;
    &amp;lt;xs:complexType&amp;gt;&lt;br /&gt;
      &amp;lt;xs:sequence&amp;gt;&lt;br /&gt;
       &amp;lt;xs:element name="to" type="xs:string" minOccurs="1" maxOccurs="100"/&amp;gt;&lt;br /&gt;
        &amp;lt;xs:element name="from" type="xs:string"/&amp;gt;&lt;br /&gt;
        &amp;lt;xs:element name="subject" type="xs:string"/&amp;gt;&lt;br /&gt;
        &amp;lt;xs:element name="body" type="xs:string"/&amp;gt;&lt;br /&gt;
      &amp;lt;/xs:sequence&amp;gt;&lt;br /&gt;
    &amp;lt;/xs:complexType&amp;gt;&lt;br /&gt;
  &amp;lt;/xs:element&amp;gt;&lt;br /&gt;
&amp;lt;/xs:schema&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Thanks!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/371859/374350/re-dtd-question/#374350</guid>
      <pubDate>Thu, 21 Aug 2008 00:31:23 -0700</pubDate>
      <category>XML Development</category>
    </item>
  </channel>
</rss>