joelnazarene

xml

Mar 13th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. <!ELEMENT students(student*)>
  2. <!ELEMENT student (rollno,name,parentname,branch,age,gender,address )>
  3. <!ELEMENT rollno(#PCDATA)>
  4. <!ELEMENT name(#PCDATA)>
  5. <!ELEMENT parentname(#PCDATA)>
  6. <!ELEMENT branch(#PCDATA)>
  7. <!ELEMENT age(#PCDATA)>
  8. <!ELEMENT gender(#PCDATA)>
  9. <!ELEMENT address(#PCDATA|hname|num)>
  10. <!ELEMENT hname(#PCDATA)>
  11. <!ELEMENT num(#PCDATA)>
  12. <!ATTLIST student gender (female|male) "male">
  13. ====================================================================
  14. =====================================================================
  15.  
  16.  
  17. <?xml version = "1.0"?>
  18. <!DOCTYPE students "1.dtd">
  19. <students>
  20. <student gender="male">
  21. <rollno>1</rollno>
  22. <name>q</name>
  23. <parentname>w</parentname>
  24. <branch>e</branch>
  25. <age>r</age>
  26. <address>
  27. <num>1</num>
  28. <hname>s</hname>
  29. </address>
  30. <gender>y</gender>
  31. </student>
  32.  
  33.  
  34.  
  35. <student gender="female">
  36. <rollno>2</rollno>
  37. <name>u</name>
  38. <parentname>i</parentname>
  39. <branch>o</branch>
  40. <age>p</age>
  41. <address>
  42. <num>2</num>
  43. <hname>s</hname>
  44. </address>
  45. <gender>s</gender>
  46. </student>
  47.  
  48.  
  49.  
  50.  
  51. <student gender="male">
  52. <rollno>3</rollno>
  53. <name>d</name>
  54. <parentname>f</parentname>
  55. <branch>g</branch>
  56. <age>h</age>
  57. <address>
  58. <num>3</num>
  59. <hname>d</hname>
  60. </address>
  61. <gender>k</gender>
  62. </student>
  63.  
  64.  
  65.  
  66. <student gender="female">
  67. <rollno>4</rollno>
  68. <name>l</name>
  69. <parentname>z</parentname>
  70. <branch>x</branch>
  71. <age>c</age>
  72. <address>
  73. <num>4</num>
  74. <hname>d</hname>
  75. </address>
  76. <gender>b</gender>
  77. </student>
  78.  
  79.  
  80.  
  81. <student gender="female">
  82. <rollno>5</rollno>
  83. <name>n</name>
  84. <parentname>m</parentname>
  85. <branch>k</branch>
  86. <age>d</age>
  87. <address>
  88. <num>5</num>
  89. <hname>v</hname>
  90. </address>
  91. <gender>s</gender>
  92. </student>
  93. </students>
Add Comment
Please, Sign In to add comment