Skip to content

CS311 - Introduction to Web Services Development

4 Topics 29 Posts
  • CS311 GDB 1 Solution and Discussion

    cs311 gdb 1 solution discussion fall 2019
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    4 Posts
    1k Views
    cyberianC
    https://cyberian.pk/topic/1166/cs311-3-fall19-solution-file
  • CS311 Assignment 2 Solution and Discussion

    Solved cs311 assignment 2 solution discussion fall 2019
    2
    0 Votes
    2 Posts
    708 Views
    zareenZ
    Solution Ideas: Write XML Schema (.xsd) code for the given XML Answer XSD Code <?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="BookStore"> <xs:complexType> <xs:sequence> <xs:element name="Book" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name="Title" type="xs:string"/> <xs:element name="Course" type="xs:string"/> <xs:element name="Year" type="xs:unsignedShort"/> <xs:element name="Publisher" type="xs:string"/> <xs:element name="Author" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> Generate the following XML on a server as output using PHP Answer PHP CODE <?php header("Content-type: text/xml"); echo"<BookStore>"; echo"<Book>"; echo"<Title>Introduction to Computing</Title>"; echo"<Course>CS101</Course>"; echo"<Year>2016</Year>"; echo"<Publisher>Virtual University of Pakistan </Publisher>"; echo"<Author>Dr Tanveer Ahmad</Author>"; echo"</Book>"; echo"<Book>"; echo"<Title>Object Oriented Programming</Title>"; echo"<Course>CS304</Course>"; echo"<Year>2017</Year>"; echo"<Publisher>Virtual University of Pakistan</Publisher>"; echo"<Author>Dr Shafeeq</Author>"; echo"</Book>"; echo"</BookStore>"; ?> PHP OUTPUT
  • CS311 Assignment 1 Solution and Discussion

    Solved cs311 assignment 1 solution discussion fall 2019
    3
    1
    0 Votes
    3 Posts
    1k Views
    zareenZ
    @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 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
| |