<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CS311 Assignment 1 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">Assignment No. 1<br />
Semester: FALL 2019<br />
Introduction to Web Services Development – CS311	<br />
Total Marks: 20</p>
<p dir="auto">Due Date: 15/11/2019<br />
Lectures Covered: 1 to 9</p>
<p dir="auto">Objectives:<br />
Understand and get hands on experience of<br />
•	Creating well-formed XML code<br />
•	Using XML elements<br />
•	Using XML attributes<br />
•	Validate XML code or Create DTD code of XML<br />
Instructions:<br />
Please read the following instructions carefully before submitting assignment:<br />
It should be clear that your assignment will not get any credit if:</p>
<p dir="auto">	The assignment is submitted after due date.<br />
	The assignment is submitted via email.<br />
	The assignment is copied from Internet or from any other student.<br />
	The submitted assignment does not open or file is corrupt.<br />
	It is in some format other than MS Word File</p>
<p dir="auto">Note: All types of plagiarism are strictly prohibited.</p>
<p dir="auto">For any query about the assignment, <a href="CS311@vu.edu.pk">contact at</a></p>
<p dir="auto">Q.       Create an internal DTD and XML Document for the XML tree drawn below.<br />
DTD (10 marks)<br />
XML Document (10 marks)</p>
<p dir="auto"><img src="/assets/uploads/files/1573894077109-5dbd967d-174e-4af4-af41-e689f47a368b-image.png" alt="5dbd967d-174e-4af4-af41-e689f47a368b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Assignment Uploading Instructions:</p>
<p dir="auto">You need to write DTD code of given XML tree. After testing that DTD code is working fine, Copy/Paste it into MS Word file and upload from your LMS account.</p>
<p dir="auto">Please note that due date of assignment will not extend, so do not wait for last date and submit your solution as quickly as possible.<br />
Due Date: 15/11/2019</p>
<p dir="auto">BEST OF LUCK</p>
]]></description><link>https://community.secnto.com//topic/613/cs311-assignment-1-solution-and-discussion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 23:01:25 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/613.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 16 Nov 2019 08:47:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS311 Assignment 1 Solution and Discussion on Wed, 04 Dec 2019 08:03:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zareen" aria-label="Profile: zareen">@<bdi>zareen</bdi></a> said in <a href="/post/1679">CS311 Assignment 1 Solution and Discussion</a>:</p>
<blockquote>
<p dir="auto">Q.       Create an internal DTD and XML Document for the XML tree drawn below.<br />
DTD (10 marks)<br />
XML Document (10 marks)</p>
</blockquote>
<p dir="auto"><strong>Solution</strong><br />
DTD:</p>
<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
&lt;!DOCTYPE league [ 
&lt;!ELEMENT league (franchise)&gt; 
&lt;!ATTLIST league name CDATA #REQUIRED&gt; 
&lt;!ATTLIST league year CDATA #REQUIRED&gt; 
&lt;!ELEMENT franchise (team+)&gt;
&lt;!ATTLIST franchise name CDATA #REQUIRED&gt; 
&lt;!ATTLIST franchise owner CDATA #REQUIRED&gt; 
&lt;!ATTLIST franchise city CDATA #REQUIRED&gt;
&lt;!ELEMENT team (win,losses,coach,player+)&gt;
&lt;!ELEMENT win (#PCDATA)&gt; 
&lt;!ELEMENT losses (#PCDATA)&gt; 
&lt;!ELEMENT coach (#PCDATA)&gt; 
&lt;!ELEMENT player (name,age,runs,matches)&gt;
&lt;!ELEMENT name (#PCDATA)&gt; 
&lt;!ELEMENT age (#PCDATA)&gt; 
&lt;!ELEMENT matches (#PCDATA)&gt;
&lt;!ELEMENT runs (#PCDATA)&gt; 
]&gt; 

</code></pre>
<p dir="auto">XML:</p>
<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;league year="" name=""&gt;
	&lt;franchise owner="" name="" city=""&gt;
		&lt;team&gt;
			&lt;wins&gt;&lt;/wins&gt;
			&lt;losses&gt;&lt;/losses&gt;
			&lt;coach&gt;&lt;/coach&gt;
			&lt;player&gt;
				&lt;name&gt;&lt;/name&gt;
				&lt;age&gt;&lt;/age&gt;
				&lt;matches&gt;&lt;/matches&gt;
				&lt;runs&gt;&lt;/runs&gt;
			&lt;/player&gt;
		&lt;/team&gt;
	&lt;/franchise&gt;
&lt;/league&gt;
</code></pre>
]]></description><link>https://community.secnto.com//post/2177</link><guid isPermaLink="true">https://community.secnto.com//post/2177</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Wed, 04 Dec 2019 08:03:44 GMT</pubDate></item><item><title><![CDATA[Reply to CS311 Assignment 1 Solution and Discussion on Sat, 16 Nov 2019 08:53:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zareen" aria-label="Profile: zareen">@<bdi>zareen</bdi></a> said in <a href="/post/1679">CS311 Assignment 1 Solution and Discussion</a>:</p>
<blockquote>
<p dir="auto">Q.       Create an internal DTD and XML Document for the XML tree drawn below.<br />
DTD (10 marks)<br />
XML Document (10 marks)</p>
</blockquote>
<p dir="auto"><a href="https://youtu.be/Zkpx5_JZTNo" target="_blank" rel="noopener noreferrer nofollow ugc">https://youtu.be/Zkpx5_JZTNo</a></p>
]]></description><link>https://community.secnto.com//post/1680</link><guid isPermaLink="true">https://community.secnto.com//post/1680</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Sat, 16 Nov 2019 08:53:10 GMT</pubDate></item></channel></rss>