Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!ELEMENT students(student*)>
- <!ELEMENT student (rollno,name,parentname,branch,age,gender,address )>
- <!ELEMENT rollno(#PCDATA)>
- <!ELEMENT name(#PCDATA)>
- <!ELEMENT parentname(#PCDATA)>
- <!ELEMENT branch(#PCDATA)>
- <!ELEMENT age(#PCDATA)>
- <!ELEMENT gender(#PCDATA)>
- <!ELEMENT address(#PCDATA|hname|num)>
- <!ELEMENT hname(#PCDATA)>
- <!ELEMENT num(#PCDATA)>
- <!ATTLIST student gender (female|male) "male">
- ====================================================================
- =====================================================================
- <?xml version = "1.0"?>
- <!DOCTYPE students "1.dtd">
- <students>
- <student gender="male">
- <rollno>1</rollno>
- <name>q</name>
- <parentname>w</parentname>
- <branch>e</branch>
- <age>r</age>
- <address>
- <num>1</num>
- <hname>s</hname>
- </address>
- <gender>y</gender>
- </student>
- <student gender="female">
- <rollno>2</rollno>
- <name>u</name>
- <parentname>i</parentname>
- <branch>o</branch>
- <age>p</age>
- <address>
- <num>2</num>
- <hname>s</hname>
- </address>
- <gender>s</gender>
- </student>
- <student gender="male">
- <rollno>3</rollno>
- <name>d</name>
- <parentname>f</parentname>
- <branch>g</branch>
- <age>h</age>
- <address>
- <num>3</num>
- <hname>d</hname>
- </address>
- <gender>k</gender>
- </student>
- <student gender="female">
- <rollno>4</rollno>
- <name>l</name>
- <parentname>z</parentname>
- <branch>x</branch>
- <age>c</age>
- <address>
- <num>4</num>
- <hname>d</hname>
- </address>
- <gender>b</gender>
- </student>
- <student gender="female">
- <rollno>5</rollno>
- <name>n</name>
- <parentname>m</parentname>
- <branch>k</branch>
- <age>d</age>
- <address>
- <num>5</num>
- <hname>v</hname>
- </address>
- <gender>s</gender>
- </student>
- </students>
Add Comment
Please, Sign In to add comment