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

今天的代码到这里就结束啦~ 咱们下期见噢
今天也要记得微笑呀.
边栏推荐
- 1095 cars on campus (30 points)
- My first Smartphone
- Keepalived热备与HAProxy
- 论文阅读_中文医疗模型_ eHealth
- Market status and development prospect prediction of global fermented plant protein industry in 2022
- appium1.22.x 版本后的 appium inspector 需单独安装
- Wechat applet waterfall flow and pull up to the bottom
- "Hands on deep learning" pytorch edition Chapter II exercise
- Review the old and know the new: Notes on Data Science
- 1103 integer factorization (30 points)
猜你喜欢

cookie session jwt

Celebrate the new year together
![[set theory] relation properties (reflexivity | reflexivity theorem | reflexivity | reflexivity theorem | example)](/img/2a/362f3b0491f721d89336d4f468c9dd.jpg)
[set theory] relation properties (reflexivity | reflexivity theorem | reflexivity | reflexivity theorem | example)

论文阅读_中文NLP_ELECTRA

Without 50W bride price, my girlfriend was forcibly dragged away. What should I do

Botu uses peek and poke for IO mapping

JS scope

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

leetcode406. Rebuild the queue based on height
![[research materials] 2022q1 game preferred casual game distribution circular - Download attached](/img/13/5a67c5d08131745759fdc70a71cf0f.jpg)
[research materials] 2022q1 game preferred casual game distribution circular - Download attached
随机推荐
Market status and development prospect prediction of the global fire extinguisher industry in 2022
Force GCC to compile 32-bit programs on 64 bit platform
Thesis reading_ Chinese NLP_ ELECTRA
First + only! Alibaba cloud's real-time computing version of Flink passed the stability test of big data products of the Institute of ICT
The principle is simple, but I don't know how to use it? Understand "contemporaneous group model" in one article
Market status and development prospect prediction of global SoC Test Platform Industry in 2022
Handler understands the record
Audio Focus Series: write a demo to understand audio focus and audiomananger
Concurrent operation memory interaction
Coordinatorlayout appbarrayout recyclerview item exposure buried point misalignment analysis
Notes | numpy-11 Array operation
Shell script -- condition judgment
Market status and development prospect prediction of the global fire alarm sensor industry in 2022
Three representations of signed numbers: original code, inverse code and complement code
Based on RFC 3986 (unified resource descriptor (URI): general syntax)
C language program ideas and several commonly used filters
Realize file download through the tag of < a > and customize the file name
Actual combat 8051 drives 8-bit nixie tube
ZABBIX monitoring of lamp architecture (2): ZABBIX basic operation
Sprintf formatter abnormal exit problem