Skip to content

CS311 - Introduction to Web Services Development

2 Topics 29 Posts
  • 0 Votes
    1 Posts
    595 Views
    No one has replied
  • CS311 Assignment 1 Solution and Discussion

    Solved cs311 assignment 1 solution discussion spring 2020
    2
    0 Votes
    2 Posts
    884 Views
    zaasmiZ
    @zareen said in CS311 Assignment 1 Solution and Discussion: Q. Create an internal DTD and XML Document for the XML tree drawn below. DTD (10 marks) XML Document (10 marks) Solution Idea DTD: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE league [ <!ELEMENT league (franchise)> <!ATTLIST league name CDATA #REQUIRED> <!ATTLIST league year CDATA #REQUIRED> <!ELEMENT franchise (team+)> <!ATTLIST franchise name CDATA #REQUIRED> <!ATTLIST franchise owner CDATA #REQUIRED> <!ATTLIST franchise city CDATA #REQUIRED> <!ELEMENT team (win,losses,coach,player+)> <!ELEMENT win (#PCDATA)> <!ELEMENT losses (#PCDATA)> <!ELEMENT coach (#PCDATA)> <!ELEMENT player (name,age,runs,matches)> <!ELEMENT name (#PCDATA)> <!ELEMENT age (#PCDATA)> <!ELEMENT matches (#PCDATA)> <!ELEMENT runs (#PCDATA)> ]> XML: <?xml version="1.0" encoding="UTF-8"?> <league year="" name=""> <franchise owner="" name="" city=""> <team> <wins></wins> <losses></losses> <coach></coach> <player> <name></name> <age></age> <matches></matches> <runs></runs> </player> </team> </franchise> </league>
How to Build a $1,000/Month PAK VS BAN Live Live Cricket Streaming
File Sharing

1

Online

3.0k

Users

2.8k

Topics

8.2k

Posts
| |