当前位置:网站首页>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才可以使用默认值的方式
- 案例

今天的代码到这里就结束啦~ 咱们下期见噢
今天也要记得微笑呀.
边栏推荐
- "Hands on deep learning" pytorch edition Chapter II exercise
- Common methods of JS array
- Webapidom get page elements
- Shell script -- condition judgment
- Keepalived热备与HAProxy
- 音频焦点系列:手写一个demo理解音频焦点与AudioMananger
- JS string and array methods
- [set theory] relation properties (reflexivity | reflexivity theorem | reflexivity | reflexivity theorem | example)
- Kept hot standby and haproxy
- 1087 all roads lead to Rome (30 points)
猜你喜欢
![[research materials] 2021 annual report on mergers and acquisitions in the property management industry - Download attached](/img/95/833f5ec20207ee5d7e6cdfa7208c5e.jpg)
[research materials] 2021 annual report on mergers and acquisitions in the property management industry - Download attached

Online VR model display - 3D visual display solution

Web APIs exclusivity

Thesis reading_ Chinese medical model_ eHealth

Handler understands the record

Gbase8s composite index (I)

Use posture of sudo right raising vulnerability in actual combat (cve-2021-3156)

Interface frequency limit access

Thesis reading_ ICD code_ MSMN

Retirement plan fails, 64 year old programmer starts work again
随机推荐
Common methods of JS array
Valentine's day limited withdrawal guide: for one in 200 million of you
JS scope
Use posture of sudo right raising vulnerability in actual combat (cve-2021-3156)
[set theory] relational power operation (relational power operation | examples of relational power operation | properties of relational power operation)
[research materials] 2021 annual report on mergers and acquisitions in the property management industry - Download attached
Appium 1.22. L'Inspecteur appium après la version X doit être installé séparément
The 19th Zhejiang I. barbecue
Gbase8s composite index (I)
Prepare for 2022 and welcome the "golden three silver four". The "summary of Android intermediate and advanced interview questions in 2022" is fresh, so that your big factory interview can go smoothly
On typescript and grammar
[set theory] relationship properties (symmetry | symmetry examples | symmetry related theorems | antisymmetry | antisymmetry examples | antisymmetry theorems)
1110 complete binary tree (25 points)
leetcode452. Detonate the balloon with the minimum number of arrows
appium1.22.x 版本后的 appium inspector 需单独安装
Thesis reading_ Chinese NLP_ ELECTRA
Review the configuration of vscode to develop golang
How to connect the network: Chapter 1 CSDN creation punch in
Use Sqlalchemy module to obtain the table name and field name of the existing table in the database
Cross platform plug-in flutter for displaying local notifications_ local_ notifications