当前位置:网站首页>Learning about XML (1)
Learning about XML (1)
2022-07-30 22:06:00 【naive little witch】
Overview of XML
1. What is XML?
XML refers to an extensible markup language.
2. What is the difference between XML and HTML?
- HTML tags cannot be customized, XML tags can only be customized;
- The xml syntax requirements are not strict, but the xml syntax requirements are extremely strict and must be paired tags.
XML and HTML are designed for different purposes:
XML was designed to transmit and store data, with the focus being on the content of the data.HTML is designed to display data, and the focus is on the appearance of the data.
XML syntax rules
1.XML must contain the root element, which is the parent of all other elements.
2.XML header declaration: not mandatory, optional.
3. All XML elements must have a closing tag
hello world /***errorhello world //correct
4.XML tags are case sensitive
5.XML must be properly nested
6. The XML attribute value must be enclosed in quotation marks, both single and double quotation marks are acceptable.
7. Entity reference
In XML, some characters have special meanings.
If you put the character "<" inside an XML element, an error occurs because the parser treats it as the start of a new element.
This will generate an XML error.
Writing at the end, the article may have some mistakes, please criticize and point out any shortcomings.
边栏推荐
- navicat新建数据库
- Navicat cannot connect to mysql super detailed processing method
- 基于ABP实现DDD--实体创建和更新
- MySql 5.7.38 download and installation tutorial, and realize the operation of MySql in Navicat
- 走进Redis,让你重新认识redis。绝不是表面
- VS2017编译Tars测试工程
- 大家都在用的plm项目管理软件有哪些
- d违反常了吗
- Py之pdpbox:pdpbox的简介、安装、案例应用之详细攻略
- 基于ABP实现DDD--仓储实践
猜你喜欢
openim支持十万超级大群
The most complete Redis basic + advanced project combat summary notes in history
基于ABP实现DDD--仓储实践
代码越写越乱?那是因为你没用责任链
MySQL 8.0.29 set and modify the default password
How strict Typescript strict mode?
IDEA 连接 数据库
活动推荐 | 2022年深圳最值得参加的边缘计算活动
MySql 5.7.38 download and installation tutorial, and realize the operation of MySql in Navicat
TransGAN代码复现—九天毕昇平台
随机推荐
系统结构考点之流水线向量点积
系统结构考点之PM2I单级网络
JDBC (detailed explanation)
MySql 5.7.38下载安装教程 ,并实现在Navicat操作MySql
Google Earth Engine ——快速实现MODIS影像NDVI动画的在线加载并导出
openim支持十万超级大群
小心你的字典和样板代码
基于ABP实现DDD--领域服务、应用服务和DTO实践
MySQL user authorization
MySQL压缩包方式安装,傻瓜式教学
OpenCV笔记(二十):滤波函数——filter2D
成功解决ModuleNotFoundError: No module named ‘Image‘
【Summary】机器人方法汇总
ThinkPHP高仿蓝奏云网盘系统源码/对接易支付系统程序
通过社交媒体建立个人IP的 5 种行之有效的策略
Collapse legacy apps
socket: Kernel initialization and detailed process of creating streams (files)
mysql 时间字段默认设置为当前时间
TransGAN代码复现—九天毕昇平台
QT 在父类中添加子类的流程,object tree,