当前位置:网站首页>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.
边栏推荐
猜你喜欢
随机推荐
OpenCV笔记(二十):滤波函数——filter2D
Chrome 配置samesite=none方式
【菜鸡含泪总结】如何用pip、anaconda安装库
【导航规划】导航规划背景知识总结
The reason for not using bs4 is that the name is too long?Crawl lottery lottery information
【翻译】作为混沌网的LFX门徒的经验
cnpm installation steps
The most powerful and most commonly used SQL statements in history
mysql remove duplicate data
系统结构考点之并行主存
MySQL 有这一篇就够(呕心狂敲37k字,只为博君一点赞!!!)
【高等数学】矩阵与向量组的秩和等价
navicat无法连接mysql超详细处理方法
Jetson AGX Orin 平台关于c240000 I2C总线和GMSL ses地址冲突问题
TCP 连接 三次握手 四次挥手
MySql 5.7.38 download and installation tutorial, and realize the operation of MySql in Navicat
482-静态库、动态库的制作、使用及区别
不用bs4的原因居然是名字太长?爬取彩票开奖信息
Difference between cookie and session
系统结构考点之CRAY-1向量处理机









