By GokiSoft.com| 19:47 10/04/2023|
Java Advanced

[Source Code] Tìm hiểu XML - C2206L

#class.xml

<?xml version="1.0" encoding="UTF-8"?>

<class-list>
	<class>
		<name>C2206L</name>
		<address>54 Le Thanh Nghi</address>
		<student-list>
			<student>
				<fullname><![CDATA[TRAN VAN A *&^23468 adg<> sdkfh weru2384(*&^]]></fullname>
				<email>a@gmail.com</email>
				<address>Ha Noi</address>
				<phone-number>123123123</phone-number>
			</student>
			<student>
				<fullname>TRAN VAN B</fullname>
				<email>a@gmail.com</email>
				<address>Ha Noi</address>
				<phone-number>123123123</phone-number>
			</student>
		</student-list>
	</class>
	<class>
		<info>
			<name>C2206G</name>
			<address>54 Le Thanh Nghi</address>
		</info>
		<student-list>
			<student>
				<fullname>TRAN VAN A</fullname>
				<email>a@gmail.com</email>
				<address>Ha Noi</address>
				<phone-number>123123123</phone-number>
			</student>
			<student>
				<fullname>TRAN VAN B</fullname>
				<email>a@gmail.com</email>
				<address>Ha Noi</address>
				<phone-number>123123123</phone-number>
			</student>
		</student-list>
	</class>
</class-list>

#readme.txt

XML:
	- File cấu hình -> Lưu thông tin của dự án
	- Android
		xml -> Giao diện
			-> Cấu hình dữ liệu rất nhiều
	- iOS
		xml -> Giao diện (Android) -> disable
		Hiện nay -> config dự án
	- Java FX
		xml -> Thiết kế UI
	- Trao đổi dữ liệu
		- SOAP API -> WS
		

#vidu.html

<!DOCTYPE html>
<html>
<head>
	<title>Student Page</title>
</head>
<body>
	<table border="1">
		<thead>
			<tr>
				<th>STT</th>
				<th>FullName</th>
				<th>Email</th>
				<th>Address</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td>1</td>
				<td>TRAN VAN A</td>
				<td>a@gmail.com</td>
				<td>Ha Noi</td>
			</tr>
		</tbody>
	</table>
</body>
</html>

#vidu.xml

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE student-list [
	<!ELEMENT student-list (student)>
	<!ELEMENT student (fullname, email, address, phone-number)>
	<!ELEMENT fullname (#PCDATA)>
	<!ELEMENT email (#PCDATA)>
	<!ELEMENT address (#PCDATA)>
	<!ELEMENT phone-number (#PCDATA)>
	<!ENTITY TVD "TRAN VAN DIEP">
]>

<student-list>
	<student>
		<fullname>TRAN VAN A &TVD;</fullname>
		<email>a@gmail.com</email>
		<address>Ha Noi</address>
		<phone-number>123123123</phone-number>
		<age>22</age>
	</student>
	<student>
		<fullname>TRAN VAN B</fullname>
		<email>a@gmail.com</email>
		<address>Ha Noi</address>
		<phone-number>123123123</phone-number>
		<age>22</age>
	</student>
</student-list>

#vidu-ns.xml

<?xml version="1.0" encoding="UTF-8"?>

<student-list>
	<student xmlns:s1="https://gokisoft.com/student1" xmlns:s3="https://gokisoft.com/student3" xmlns="https://gokisoft.com/student">
		<s1:fullname>TRAN VAN A</s1:fullname>
		<s3:email>a@gmail.com</s3:email>
		<s1:address>Ha Noi</s1:address>
		<phone-number>123123123</phone-number>
	</student>
	<student xmlns:s2="https://gokisoft.com/student2">
		<s2:fullname>TRAN VAN B</s2:fullname>
		<email>a@gmail.com</email>
		<address>Ha Noi</address>
		<phone-number>123123123</phone-number>
	</student>
</student-list>
Tags:



Phản hồi từ học viên

5

(Dựa trên đánh giá ngày hôm nay)

Đăng nhập để làm bài kiểm tra

Chưa có kết quả nào trước đó