XML: Tạo tài liệu XML - quản lý lớp học
1. Viết tài liệu quản lý lớp học => mô tả thông tin lớp học, danh sách sinh viên của từng lớp
Yêu cầu : khi đọc tài liệu xml sẽ biết được thông tin >> tài liệu xml đó có những lớp học nào, thông tin của lớp học đó là gì, danh sách sinh viên của từng lớp và biết được chi tiết thông tin của từng sinh viên.
2. Viết tài liệu XML mô tả thông tin cá nhân, sở thích, dụng cụ học tập, ngôn ngữ lập trình bạn thích
Yêu cầu: Khi đọc tài liệu có thể biết được profile của 1 cá nhân duy nhất, xem được thông tin cá nhân, sở thích, ngôn ngữ lập trình của cá nhân đó và các trang thiết bị học tập. Các thẻ phải mô tả chính xác nội dung đang cần diễn đạt (cách đặt tên)
Tags:
Phản hồi từ học viên
5
(Dựa trên đánh giá ngày hôm nay)
hohuy1610@gmail.com
2022-06-08 11:13:20
#class.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Class [
<!ELEMENT ClassName (name, information)>
<!ELEMENT ClassStudent (Fullname, Love, LearningTools, Favouriteprogramminglanguage)>
]>
<Class-list xmlns:Class = "URL">
<Class:ClassName xmlns:ClassName="URL1" xmlns="URL5">
<name>C2108L</name>
</Class:ClassName>
<Class:ClassStudent xmlns:ClassStudent="URL2">
<Fullname>Ho Gia Huy</Fullname>
<Love>Football</Love>
<LearningTools>Laptop</LearningTools>
<Favouriteprogramminglanguage>PHP</Favouriteprogramminglanguage>
</Class:ClassStudent>
</Class-list>
Hoàng Anh
2022-06-06 13:58:33
<?xml version="1.0" encoding="UTF-8"?>
<?--tai lieu 1 --?>
<classroomInfor>
<classroom-list>
<classroom-name>Class A</classroom-name>
<classroom-grade>12</classroom-grade>
<classroom-table>25</classroom-table>
<classroom-members>40<classroom-members>
</classroom-list>
</classroomInfor>
<studentInfor>
<student-list>
<student-name>Tran Van A</student-name>
<student-age>18</student-age>
<student-sex>male</student-sex>
<student-classroomname>Class A</student-classroomname>
</student-list>
</studentInfor>
<?--tai lieu 2 --?>
<personalInfor>
<name>Nguyen Van B</name>
<age>19</age>
<sex>male</sex>
<interest>Esport</interest>
<main>Java Advanced</main>
<learningsTools>Computers & touchpad</learningsTools>
</personalInfor>
Vũ Đình Khôi
2021-04-05 09:34:33
<?xml version="1.0" encoding="UTF-8"?>
<uses-list>
<!-- DTD -->
<!DOCTYPE user-list [
<!ELEMENT user-list (class-one, class-Twe)>
<!ELEMENT class-one (name, Teacher, number, male-population, female-population, student-list)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT Teacher (#PCDATA)>
<!ELEMENT number (#PCDATA)>
<!ELEMENT male-population (#PCDATA)>
<!ELEMENT female-population (#PCDATA)>
<!ELEMENT student-list (infor-people)>
<!ELEMENT infor-people (ord-order-number)>
<!ELEMENT ord-order-number (people-one, people-twe, people-three)>
<!ELEMENT student-list (#PCDATA)>
<!ELEMENT class-twe (name, Teacher, number, male-population, female-population, student-list)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT Teacher (#PCDATA)>
<!ELEMENT number (#PCDATA)>
<!ELEMENT male-population (#PCDATA)>
<!ELEMENT female-population (#PCDATA)>
<!ELEMENT student-list (#PCDATA)>
]>
<!-- Content -->
<class-one>
<name>T2008A</name>
<Teacher>Tran Van A</Teacher>
<number>4 people</number>
<male-population> 3 people</male-population>
<female-population>1 people</female-population>
<student-list>
<infor-people>
<ord-order-number>
<people-one>
<fullname>Do Duy Khanh</fullname>
<address>Ha Noi</address>
<birthday>04-04-2000</birthday>
<devices>laptops DELL</devices>
<email>Doduykhanh@gmail.com</email>
<gender>Nam</gender>
</people-one>
<people-twe>
<fullname>Duong Cong Minh</fullname>
<address>Ha Noi</address>
<birthday>03-03-2000</birthday>
<devices>laptops DELL</devices>
<email>Duongcongminh@gmail.com</email>
<gender>Nam</gender>
</people-twe>
<people-three>
<fullname>Vu Dinh Khoi</fullname>
<address>Ha Nam</address>
<birthday>13-09-2000</birthday>
<devices>laptops DELL</devices>
<email>Vudinhkhoi2000@gmail.com</email>
<gender>Nam</gender>
</people-three>
<people-for>
<fullname>Do Thi Hong Ngoc</fullname>
<address>Ha Noi</address>
<birthday>14-08-2000</birthday>
<devices>laptops DELL</devices>
<email>Dohongngoc2002@gmail.com</email>
<gender>Nu</gender>
</people-for>
</ord-order-number>
</infor-people>
</student-list>
</class-one>
<class-Twe>
<name>T2009A</name>
<Teacher>Tran Van B</Teacher>
<number>4 people</number>
<male-population> 3 people</male-population>
<female-population>1 people</female-population>
<student-list>
<infor-people>
<ord-order-number>
<people-one>
<fullname>Do Duy A</fullname>
<address>Ha Noi</address>
<birthday>04-04-2002</birthday>
<devices>laptops DELL</devices>
<email>DoduyA@gmail.com</email>
<gender>Nam</gender>
</people-one>
<people-twe>
<fullname>Duong Cong B</fullname>
<address>Ha Noi</address>
<birthday>03-03-2000</birthday>
<devices>laptops DELL</devices>
<email>Duongcongb@gmail.com</email>
<gender>Nam</gender>
</people-twe>
<people-three>
<fullname>Vu Dinh C</fullname>
<address>Ha Nam</address>
<birthday>13-09-2000</birthday>
<devices>laptops DELL</devices>
<email>Vudinhc2000@gmail.com</email>
<gender>Nam</gender>
</people-three>
<people-for>
<fullname>Do Thi Hong D</fullname>
<address>Ha Noi</address>
<birthday>14-08-2000</birthday>
<devices>laptops DELL</devices>
<email>Dohongd2002@gmail.com</email>
<gender>Nu</gender>
</people-for>
</ord-order-number>
</infor-people>
</student-list>
</class-Twe>
</uses-list>
Nguyễn đình quân
2021-04-05 09:17:28
<?xml version="1.0" encoding="UTF-8"?>
<classinfo>
<className>T2008A</className>
<address>Ha Noi</address>
<studentList>
<Student7>
<name>Tran van a</name>
<phoneNumber>8213102315151</phoneNumber>
<birthday>02-02-1989</birthday>
<gender>nam</gender>
</Student7>
<Student8>
<name>nguyen van b</name>
<phoneNumber>226651165655</phoneNumber>
<birthday>22-03-1989</birthday>
<gender>nu</gender>
</Student8>
<Student9>
<name>nguyen dinh c</name>
<phoneNumber>2666555656565</phoneNumber>
<birthday>10-06-1989</birthday>
<gender>nam</gender>
</Student9>
</studentList>
<className>T2009A</className>
<address>Thai Binh</address>
<studentList>
<Student28>
<name>nguyen thi a</name>
<phoneNumber>6625656666555</phoneNumber>
<birthday>25-04-1979</birthday>
<gender>nu</gender>
</Student28>
<Student29>
<name>phan van b</name>
<phoneNumber>0556565623</phoneNumber>
<birthday>21-07-1979</birthday>
<gender>nam</gender>
</Student29>
<Student30>
<name>la thi b</name>
<phoneNumber>09831051151523</phoneNumber>
<birthday>01-07-1979</birthday>
<gender>nu</gender>
</Student30>
</classinfo>
Nguyễn đình quân
2021-04-05 08:57:27
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE USER_LIST [
<!ELEMENT user-list (infor, devices)>
<!ELEMENT infor (fullname, birthday, address, email)>
<!ELEMENT fullname (#PCDATA)>
<!ELEMENT birthday (#PCDATA)>
<!ELEMENT address (#PCDATA)>
<!ELEMENT email (#PCDATA)>
<!ELEMENT devices (device)>
<!ELEMENT device (name, type, price, manufacturer)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT type (#PCDATA)>
<!ELEMENT price (#PCDATA)>
<!ELEMENT manufacturer (#PCDATA)>
<!ENTITY NDQ "NGUYEN DINH QUAN">
]>
<user-list xmlns:abc = "https://www.facebook.com/profile.php?id=100008795161326/abc" xmlns:okok = "https://www.facebook.com/profile.php?id=100008795161326/okok">
<abc:infor okok:title = "Hello World!!!">
<okok:fullname>&NDQ;</okok:fullname>
<okok:birthday>22-03-2002</okok:birthday>
<abc:address>52/25/18 duong my dinh, nam tu liem, my dinh 2 ,hanoi</abc:address>
<abc:email>nguyenquan200298@gmail.com</abc:email>
</abc:infor>
<devices>
<device>
<name>dung cu hoc tap</name>
<name>Dell LATITUDE E5550</name>
<type>Laptop</type>
<name>iPhone Xsm</name>
<type>Smart Phone</type>
</device>
<device>
<name>so thich</name>
<type>game :league legends, Arena of valor, PLAYERUNKNOWN'S BATTLEGROUNDS ,Zing Speed Mobile</type>
<type>phim :blockbuster ,romantic comedy, school</type>
<type>nghe nhac:nhac tre , nhac vang</type>
</device>
<device>
<name>ngon ngu lap trinh ban thich</name>
<type>html , css , bootstrap,js</type>
</device>
</devices>
</user-list>
Trần Văn Lâm
2021-04-05 08:46:03
#profile.xml
<?xml version="1.0" encoding="UTF-8"?>
<my_Profile>
<member>
<name>Trần Văn Lâm</name>
<age>19</age>
<gender>Nam</gender>
<favourite>Đá Bóng</favourite>
<learning_tools>laptop</learning_tools>
<programming_language>JAVA</programming_language>
</member>
<member>
<name>Lionel Messi</name>
<age>33</age>
<gender>Nam</gender>
<favourite>Đá Bóng</favourite>
<learning_tools>laptop</learning_tools>
<programming_language>C#</programming_language>
</member>
<member>
<name>Cristiano Ronaldo</name>
<age>36</age>
<gender>Nam</gender>
<favourite>Đá Bóng</favourite>
<learning_tools>laptop</learning_tools>
<programming_language>PHP</programming_language>
</member>
<member>
<name>Phan Tấn Trung</name>
<age>31</age>
<gender>Nam</gender>
<favourite>Chơi Game</favourite>
<learning_tools>PC</learning_tools>
<programming_language>HTML/CSS</programming_language>
</member>
</my_Profile>
#student.xml
<?xml version="1.0" encoding="UTF-8"?>
<class_aptech>
<class>
<rollno>R01</rollno>
<address>Số 8A Tôn Thất Thuyết, Mỹ Đình, Nam Từ Liêm, Hà Nội </address>
<name_Class>T2008A</name_Class>
<name_Teacher>Trần Ngọc Tuấn Điệp</name_Teacher>
<student_List>
<student>
<name>Trần Ngọc Thiên Lâm</name>
<gender>Nam</gender>
<age>19</age>
<address>Hà Nội Capital</address>
<email>lam@gmail.com</email>
</student>
<student>
<name>Nguyễn Ngọc Amee</name>
<gender>Nữ</gender>
<age>19</age>
<address>Hà Nội Capital</address>
<email>lam@gmail.com</email>
</student>
</student_List>
</class>
<class>
<rollno>R02</rollno>
<address>Số 8A Tôn Thất Thuyết, Mỹ Đình, Nam Từ Liêm, Hà Nội </address>
<name_Class>T1008A</name_Class>
<name_Teacher>Ba Rọi Béo</name_Teacher>
<student_List>
<student>
<name>Trần Sơn Tùng</name>
<gender>Nam</gender>
<age>19</age>
<address>Hà Nội Capital</address>
<email>jay@gmail.com</email>
</student>
<student>
<name>Nguyễn Ngọc Phấn Đông</name>
<gender>Nữ</gender>
<age>19</age>
<address>Hà Nội Capital</address>
<email>ben@gmail.com</email>
</student>
</student_List>
</class>
</class_aptech>
nguyễn Sử
2021-04-05 08:36:33
<?xml version="1.0" encoding="UTF-8"?>
<class_list>
<class1>
<Name-class>T2008A</Name-class>
<name>Nguyen Su</name>
<birthday>04-04-2002</birthday>
<address>Ha Noi</address>
</class1>
<class2>
<Name-class>T2008A</Name-class>
<name>Nguyen Su</name>
<birthday>04-04-2002</birthday>
<address>Ha Noi</address>
</class2>
<class3>
<Name-class>T2008A</Name-class>
<name>Nguyen Su</name>
<birthday>04-04-2002</birthday>
<address>Ha Noi</address>
</class3>
<class4>
<Name-class>T2008A</Name-class>
<name>Nguyen Su</name>
<birthday>04-04-2002</birthday>
<address>Ha Noi</address>
</class4>
</class_list>
nguyễn Sử
2021-04-05 08:32:48
<?xml version="1.0" encoding="UTF-8"?>
<describe_information>
<infor1>
<class>T2008A</class>
<name>Nguyen Su</name>
<birthday>04-04-2002</birthday>
<address>Thai Binh</address>
<interests>Games</interests>
<learning_tools>laptop</learning_tools>
<programming_language>PHP/laravel</programming_language>
</infor1>
<infor2>
<class>T2008B</class>
<name>Nguyen Su</name>
<birthday>04-04-2002</birthday>
<address>Thai Binh</address>
<interests>Music</interests>
<learning_tools>laptop</learning_tools>
<programming_language>java</programming_language>
</infor2>
<infor3>
<class>T2008C</class>
<name>Nguyen Su</name>
<birthday>04-04-2002</birthday>
<address>Thai Binh</address>
<interests>sport</interests>
<learning_tools>laptop</learning_tools>
<programming_language>Rubi</programming_language>
</infor3>
</describe_information>
vuong huu phu
2021-04-05 08:32:36
<?xml version="1.0" encoding="UTF-8"?>
<personal-information-LIST>
<user>
<Full-name>Vuong Huu Phu</Full-name>
<interests>learning</interests>
<learning-tools>PC</learning-tools>
<programming-language>Java</programming-language>
</user>
<user>
<Full-name>Vuong Huu A</Full-name>
<interests>learning</interests>
<learning-tools>PC</learning-tools>
<programming-language>C</programming-language>
</user>
<user>
<Full-name>Vuong Huu B</Full-name>
<interests>learning</interests>
<learning-tools>PC</learning-tools>
<programming-language>HTML</programming-language>
</user>
<user>
<Full-name>Vuong Huu C</Full-name>
<interests>learning</interests>
<learning-tools>PC</learning-tools>
<programming-language>SQL</programming-language>
</user>
<user>
<Full-name>Vuong Huu D</Full-name>
<interests>learning</interests>
<learning-tools>PC</learning-tools>
<programming-language>C</programming-language>
</user>
</personal-information-LIST>
<?xml version="1.0" encoding="UTF-8"?>
<class_list>
<class>
<Name-class>T2008A</Name-class>
<std-name>Vuong Huu Phu</std-name>
<std-birthday>10-5-2002</std-birthday>
<std-address>Ha Noi</std-address>
</class>
<class>
<Name-class>T2001A</Name-class>
<std-name>Vuong Huu A</std-name>
<std-birthday>01-05-2005</std-birthday>
<std-address>Ha Noi</std-address>
</class>
<class>
<Name-class>T2002A</Name-class>
<std-name>Vuong Huu B</std-name>
<std-birthday>01-05-2000</std-birthday>
<std-address>Ha Noi</std-address>
</class>
<class>
<Name-class>T2003A</Name-class>
<std-name>Vuong Huu C</std-name>
<std-birthday>01-05-2004</std-birthday>
<std-address>Ha Noi</std-address>
</class>
<class>
<Name-class>T2004A</Name-class>
<std-name>Vuong Huu D</std-name>
<std-birthday>01-05-2001</std-birthday>
<std-address>Ha Noi</std-address>
</class>
</class_list>
Nguyễn Tiến Đạt
2021-04-05 08:29:18
<?xml version="1.0" encoding="UTF-8"?>
<!-- DTD -->
<!-- Content -->
<profile>
<name>Nguyen Tien Dat</name>
<gender>Nam</gender>
<birthday>18-04-2002</birthday>
<status>In a relationship</status>
<interest>
<sport>Football, Basketball, Badminton, Swimming,...</sport>
<game>League of Legends, PES 2021, Naruto Shippuden, Dragon Ball Xenoverse 2,...</game>
<music>
<us-uk>Shape Of You, Despacito, Until You,...</us-uk>
<v-pop>Em cua ngay hom qua, Nang tho, Thang tu la loi noi doi cua em,...</v-pop>
</music>
</interest>
<program-language>HTML, CSS, JS, C, C++, JQuery, Bootstrap 4, Python, Java, XML, Swing Patterns,...</program-language>
<learning-equipment>
<laptop>
<name>Laptop HP Pavilion 15-cs3063TX i7-1065G7/8GB/512GB/WIN10</name>
</laptop>
<book-list>
<book>100 bai code thieu nhi</book>
<book>Toi da day thi nhu the nao?</book>
</book-list>
</learning-equipment>
</profile>