当前位置:网站首页>XML learning notes
XML learning notes
2022-06-27 00:40:00 【zfoo-framework】
1)xml: Extensible markup language Extensible markup language
2) Extensible meaning : The tags are all custom , For example, there can be <user> <student>. and html The labels belong to others .
3) function : xml and html Have a common father :w3c( World wide web consortium )
html Is a loose language ,xml To replace html, But there is no functional improvement , In the end, he didn't win .
Then and properties competition :
name=zhangsan
age=23
gender=nan
xml Easy to read , Clear , It has found its own direction : It is no longer a presentation of data , It's storing data ( The configuration file 、 To transmit in a network )
<user id='1'>
<name>zhangsan</name>
<age>23</age>
<gender>nan</gender>
</user>
4) contrast :
xml Labels are custom ,html Tags are predefined .
xml Strict grammar ,html Loose grammar .
xml It's storing data ,html It's showing data .
5) The document statement
6)xml There is also a parsing engine , Drag to the browser without reporting an error , Then : Correct .
7) Who wrote it xml?
Who parses xml?
explain ( constraint ) file : Specifies the xml Rules for writing documents .
8) Constraint technology :
The most primitive is dtd: A simple constraint , The disadvantage is that : Cannot constrain content .
schema: Suffix is xsd.
xsd:sequence // Appear in order
xsd:complexType //
9)xml analysis
dom: take xml Load into memory at one time , formation dom Trees .
advantage : It is easy to operate , You can do CRUD operation .
shortcoming :1M Documents , Load it once , Probably 1000~1W M about . So it takes up a lot of memory .
SAX: Read line by line , Based on event driven . Read a line , Just release one line , There is only one line in memory .
advantage : Basically does not occupy memory .
shortcoming : Can only read .
10)xml Common parsers
jaxp:sun Support provided by the company dom and sax, Very slowly .
dom4j: An excellent , Commonly used in parsers .
jsoup: Often used to parse html.
pull:android Built in parser .sax The way .
边栏推荐
- Batch generate folders based on file names
- 07 | 工作流设计:如何设计合理的多人开发模式?
- 温故知新--常温常新
- 这3个并发编程的核心,竟然还有人不知道?
- 当Transformer遇见偏微分方程求解
- kubernetes可视化界面dashboard
- com.fasterxml.jackson.databind.exc.MismatchedInputException: Expected array or string. at [Source:x
- 中信证券佣金 网上开户炒股安全吗
- How do new investors open accounts online? Is it safe to open accounts online and speculate in stocks
- Outside the code: writing is the best way to force growth
猜你喜欢

Is there anyone who doesn't know the three cores of concurrent programming?

【UVM实战 ===> Episode_3 】~ Assertion、Sequence、Property

我的c语言进阶学习笔记 ----- 关键字

根据文件名批量生成文件夹

My advanced learning notes of C language ----- keywords

當Transformer遇見偏微分方程求解

Mindspire, a domestic framework, cooperates with Shanshui nature conservation center to find and protect the treasure life in the "China water tower"

Memorizing byte order of big and small end

深度学习方法求解平均场博弈论问题

Moher College -x-forwarded-for injection vulnerability practice
随机推荐
Lwip之定时机制
大咖讲 | 最前沿的昇思MindSpore开源社区运营的经验分享,快拿出小本本记录呀!
In depth understanding of UDP in the transport layer and the use of UDP in sockets
Oracle 數據庫基本知識概念
巧记大小端字节序
Target tracking shooting? Target occlusion shooting? With 1.9 billion installed petal apps, what unique features attract users?
指南针开户安全的吗?
Oracle 数据库基本知识概念
根据文件名批量生成文件夹
在线上买养老年金险正规安全吗?有没有保单?
Thesis study -- Analysis of the influence of rainfall field division method on rainfall control rate
In the Internet industry, there are many certificates with high gold content. How many do you have?
Redis detailed tutorial
数字格式化的 js 库
新股民如何网上开户 网上开户炒股安全吗
When transformer encounters partial differential equation solution
Can I open an account for stock trading on my mobile phone? Is it safe to open an account for stock trading on the Internet
[microservices] understanding microservices
[vscode] setting sync, a plug-in for synchronizing extensions and settings
泰国安全又划算的支付方式