当前位置:网站首页>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才可以使用默认值的方式
- 案例
今天的代码到这里就结束啦~ 咱们下期见噢
今天也要记得微笑呀.
边栏推荐
- ZABBIX monitoring of lamp architecture (2): ZABBIX basic operation
- Blog building tool recommendation (text book delivery)
- ZABBIX monitoring of lamp architecture (3): zabbix+mysql (to be continued)
- The current market situation and development prospect of the global gluten tolerance test kit industry in 2022
- JS function algorithm interview case
- Cross platform plug-in flutter for displaying local notifications_ local_ notifications
- Maximum continuous sub segment sum (dynamic programming, recursive, recursive)
- 5-36v input automatic voltage rise and fall PD fast charging scheme drawing 30W low-cost chip
- [research materials] the fourth quarter report of the survey of Chinese small and micro entrepreneurs in 2021 - Download attached
- Market status and development prospect forecast of global button dropper industry in 2022
猜你喜欢
2022-02-12 daily clock in: problem fine brush
Mobile terminal - uniapp development record (public request encapsulation)
JDBC database operation
"Hands on deep learning" pytorch edition Chapter II exercise
Thesis reading_ ICD code_ MSMN
Learn to use the idea breakpoint debugging tool
How to connect the network: Chapter 2 (Part 1): a life cycle of TCP connection | CSDN creation punch in
Basic knowledge of reflection (detailed explanation)
[research materials] annual report of China's pension market in 2021 - Download attached
Shuttle + Alluxio 加速内存Shuffle起飞
随机推荐
"Pthread.h" not found problem encountered in compiling GCC
Chapter II program design of circular structure
Gbase8s composite index (I)
[set theory] relational power operation (relational power operation | examples of relational power operation | properties of relational power operation)
ZABBIX monitoring of lamp architecture (2): ZABBIX basic operation
MySQL master-slave configuration
Force GCC to compile 32-bit programs on 64 bit platform
[batch dos-cmd command - summary and summary] - CMD window setting and operation command - close CMD window and exit CMD environment (exit, exit /b, goto: EOF)
JS string and array methods
RT thread flow notes I startup, schedule, thread
Shuttle + alluxio accelerated memory shuffle take-off
Market status and development prospect prediction of the global forward fluorescent microscope industry in 2022
Current market situation and development prospect prediction of global direct energy deposition 3D printer industry in 2022
JS dynamic table creation
The 19th Zhejiang I. barbecue
Distinguish between releases and snapshots in nexus private library
First + only! Alibaba cloud's real-time computing version of Flink passed the stability test of big data products of the Institute of ICT
My first Smartphone
study hard and make progress every day
Problems encountered in fuzzy query of SQL statements