当前位置:网站首页>XML配置文件
XML配置文件
2022-07-03 05:07:00 【洛洛虎虎生威】
hello,家人们,今天我们来学习XML配置文件
目录
一.什么是XML?
XML 被设计用来传输和存储数据,XML 指可扩展标记语言.
- XML 指可扩展标记语言(EXtensible Markup Language)。
- XML 是一种很像HTML的标记语言。
- XML 的设计宗旨是传输数据,而不是显示数据。
- XML 标签没有被预定义。您需要自行定义标签。
- XML 被设计为具有自我描述性。
- XML 是 W3C 的推荐标准
二.XML的作用
XML 应用于 Web 开发的许多方面,常用于简化数据的存储和共享
- XML把数据从HTML分离
- XML简化数据分享
- XML简化数据传输
- XML简化平台变更
- XML使您的数据更有用
- XML用于创造新的互联网语言
三.我们为什么要运用XML?
xml具有的能够运行于不同系统平台之间和转换成不同格式目标文件的能力使得它成为内容管理应用系统中的优秀选择
四.XML的结构图

五.标准的XML格式
- 有且只有一个根元素
- XML标签大小写正确区分
- 正确使用结束标签
- 正确嵌套标签
- 使用了合法的标签名
- 定义有效的属性
六.🥤🥤元素定义
- 元素的分类
1.空元素
<!ELEMENT element-name EMPTY> //空元素2.文本元素
<!ELEMENT element-name (#PCDATA)>//文本元素3.混合元素
<!ELEMENT element-name(e1,e2)> //混合元素- 元素的限制
与(,) 非(|)
次数分为:
| 0或1 | 用?号表示 |
| 0~N | 用*号表示 |
| 1~N | 用+号表示 |
- 案例

七.属性定义
语法:
<!ATTLIST element-name att_name type desc>- 属性类型type
- ID:写元素的话必须要写这个
- (男|女) :只能填男或者女
- CDATA:文本属性
- IDREF:引用别人ID中的值
- reference(少用)
- 属性描述
#REQUIRED:必填
#IMPLIED:非必填
'默认值'
注意:只有type为(男|女)类型时,desc才可以使用默认值的方式
- 案例

今天的代码到这里就结束啦~ 咱们下期见噢
今天也要记得微笑呀.
边栏推荐
- The 19th Zhejiang I. barbecue
- Market status and development prospects of the global IOT active infrared sensor industry in 2022
- [set theory] relationship properties (symmetry | symmetry examples | symmetry related theorems | antisymmetry | antisymmetry examples | antisymmetry theorems)
- Basic use of Metasploit penetration testing framework
- 【批处理DOS-CMD命令-汇总和小结】-CMD窗口的设置与操作命令-关闭cmd窗口、退出cmd环境(exit、exit /b、goto :eof)
- Caijing 365 stock internal reference: what's the mystery behind the good father-in-law paying back 50 million?
- leetcode435. Non overlapping interval
- Unity tool Luban learning notes 1
- Use posture of sudo right raising vulnerability in actual combat (cve-2021-3156)
- 2022-02-12 daily clock in: problem fine brush
猜你喜欢

【批处理DOS-CMD命令-汇总和小结】-CMD窗口的设置与操作命令-关闭cmd窗口、退出cmd环境(exit、exit /b、goto :eof)

音频焦点系列:手写一个demo理解音频焦点与AudioMananger

leetcode452. Detonate the balloon with the minimum number of arrows

Compile and decompile GCC common instructions
![[research materials] 2021 China's game industry brand report - Download attached](/img/b7/a377b0b7c742078e2feb28ebfbca62.jpg)
[research materials] 2021 China's game industry brand report - Download attached
![[set theory] relationship properties (common relationship properties | relationship properties examples | relationship operation properties)](/img/af/8dfa783c87363a9d75c52e7680d508.jpg)
[set theory] relationship properties (common relationship properties | relationship properties examples | relationship operation properties)

Do you know UVs in modeling?

Basic use of Metasploit penetration testing framework

leetcode406. Rebuild the queue based on height
![[luatos sensor] 2 air pressure bmp180](/img/88/2a6caa5fec95e54e3fb09c74ba8ae6.jpg)
[luatos sensor] 2 air pressure bmp180
随机推荐
[research materials] the fourth quarter report of the survey of Chinese small and micro entrepreneurs in 2021 - Download attached
study hard and make progress every day
音频焦点系列:手写一个demo理解音频焦点与AudioMananger
Interface frequency limit access
Shuttle + alluxio accelerated memory shuffle take-off
Esp32-c3 learning and testing WiFi (II. Wi Fi distribution - smart_config mode and BlueIf mode)
最大连续子段和(动态规划,递归,递推)
leetcode406. Rebuild the queue based on height
JS dynamic table creation
1099 build a binary search tree (30 points)
Do you know UVs in modeling?
JS string and array methods
JQ style, element operation, effect, filtering method and transformation, event object
1115 counting nodes in a BST (30 points)
1107 social clusters (30 points)
Chapter II program design of circular structure
112 stucked keyboard (20 points)
1086 tree traversals again (25 points)
Review the configuration of vscode to develop golang
Go language interface learning notes