当前位置:网站首页>XML related interview questions

XML related interview questions

2022-06-23 09:40:00 Linging_ twenty-four

https://zhuanlan.zhihu.com/p/33804163
https://blog.csdn.net/tanwei4199/article/details/24006275

1、 What is? XML

Extensible markup language , It is used for data transmission and storage , You can customize the label , Just need to satisfy <> closed </> that will do .

2、XML And HTML The difference between

 Insert picture description here

3、XML For data transfer , So it's with JSON The difference between ?
  • XML The file format is complex , More broadband , Server side and client side parsing xml It costs more resources and time .
  • JSON File format compression , Take up less broadband
4、 What is? XPath

For from XML To retrieve and locate elements and attributes . It has its own grammar and rules .

5、DOM and SAX What's the difference between parsers

DOM load XML The method of XML The file is loaded into memory in a tree structure , Not suitable for loading large , Random access is possible XML The elements of .
SAX load XML Is event driven , take XML The file is partially loaded into memory , Suitable for handling large files , Not right XML Add, delete and modify , Parsing can only be performed once from beginning to end , No random access .

原网站

版权声明
本文为[Linging_ twenty-four]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206230929350175.html