当前位置:网站首页>XML file explanation: what is XML, XML configuration file, XML data file, XML file parsing tutorial
XML file explanation: what is XML, XML configuration file, XML data file, XML file parsing tutorial
2022-07-06 11:49:00 【Forgotten world】
Please add group for question consultation and project source code :
QQ Group :
name :IT Project communication group
Group number :245022761
1、 Introduction Overview XML, Why use XML( remember )
- XML Designed to transmit and store data .
- XML The data from HTML Separate
- XML Simplify data sharing
- XML Simplify data transfer
- XML Simplify data transfer
- XML Make your data more useful
summary :XML Is the file used to store data , We can extract the data we want after parsing .
1、 Such as : The data to be configured is stored in the configuration file ;2、 Data files store the data we need to use ;
2、 Write XML The syntax of the file needs attention , Remember, there will be no problem
XML The document must have a root element
XML Optional parts of the declaration file ,<?xml version="1.0" encoding="utf-8"?>
be-all XML Element must have a close tag
XML Tags are case sensitive
XML Must nest... Correctly
XML Attribute values must be quoted
XML The comments in ,<!-- This is a comment -->
stay XML in , Spaces will be reserved
3、 Start writing your own XML Data files 、XML The configuration file
~ Data file instance :
Define a bookstore Data files , Store the data you need
<bookstore>
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
<book category="CHILDREN">
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book category="WEB">
<title lang="en">Learning XML</title>
<author>Erik T. Ray</author>
<year>2003</year>
<price>39.95</price>
</book>
</bookstore>
~ Example project configuration file
<?xml version="1.0" encoding="utf-8" ?>
<-- Project name apache_client , The variables that need to be configured for the project are service_connects、status_change 、data_upload>
<apache_client
service_connects="times"
status_change="time1"
data_upload="time2">
<-- The data volume of the project server can be configured 、 The data of the server is name、host\port>
<ftp_server_list>
<ftp_server name="01" host="1.1.1.1" port="21" />
<ftp_server name="02" host="ftp.advantech.com" port="21" />
<ftp_server name="03" host="" port="" />
</ftp_server_list>
</apache_client>
I believe I read the above XML The file is introduced , Yes XML The document has a deeper understanding , Later we will explain XML Analytical way ,
If you have any questions, you can enter the group for consultation , Communication and learning , Bao Jiaobao understands .
Attached are all the achievements of my study during my university study demo, The implementation of these projects has been tested and run by myself , It is also the accumulation of knowledge in my study , Sorting is not easy to , I hope that helps , We should communicate more about our shortcomings .
Please add a group to download the source code of the project :
QQ Group :
name :IT Project communication group
Group number :245022761
Different corners of the world work together , Become better us .
1.51 Single chip learning and sorting
be based on 51 Intelligent light controlled street lamp of single chip microcomputer :https://download.csdn.net/download/qq_37037348/11071869
be based on 51 SCM ultrasonic ranging ( Including source program , Schematic diagram and PCB Source file ):https://download.csdn.net/download/qq_37037348/11071866
be based on 51 Intelligent security alarm system of single chip microcomputer :https://download.csdn.net/download/qq_37037348/11071865
be based on 51 MCU modular programming module ( infrared 、 LCD screen 、 Temperature and humidity sensors are modularized )
:https://download.csdn.net/download/qq_37037348/11053222
be based on 51 Single chip microcomputer pwm Controlled breathing lamp program
https://download.csdn.net/download/qq_37037348/11053195
51 The example of serial port communication between MCU and host computer contains the complete code explained in detail
https://download.csdn.net/download/qq_37037348/11053164
be based on 51 The simulation of DC / AC voltmeter of single chip microcomputer ( Detailed code implementation , Design explanation )
https://download.csdn.net/download/qq_37037348/11053145
be based on 51 MCU badge Detailed code implementation , Design explanation )
https://download.csdn.net/download/qq_37037348/11053125
be based on 51 Single chip microcomputer 3x4 Key dialing ( Detailed code implementation , Design explanation )
https://download.csdn.net/download/qq_37037348/11053093
be based on 51 Single chip microcomputer dialing ( Detailed code implementation , Design explanation )
https://download.csdn.net/download/qq_37037348/11053090
be based on 51 Single chip microcomputer alarm system design ( Detailed code implementation , Design explanation )
https://download.csdn.net/download/qq_37037348/11053086
be based on 51 SCM lights up a small lamp ( Detailed code implementation , Design explanation , Study 51 Basic experiments )
https://download.csdn.net/download/qq_37037348/11053084
be based on 51 Volleyball timer developed by MCU , With detailed notes , To provide you with the most sincere help
https://download.csdn.net/download/qq_37037348/11053024
be based on 51 SCM music player , Source detailed notes
https://download.csdn.net/download/qq_37037348/11053022
2.Android Development, learning and sorting :
Android-serialport mobile phone App Serial communication code implementation :
https://download.csdn.net/download/qq_37037348/11050521
Android-serialport mobile phone App Network communication example code implementation :
https://download.csdn.net/download/qq_37037348/11050516
Android first App Detailed tutorial 、 Basic experiments :
https://download.csdn.net/download/qq_37037348/11050515
3. Computer vision ( Deep learning 、 Learning neural networks )
feature extraction( Deep learning , feature extraction , neural network :https://download.csdn.net/download/qq_37037348/11065968
feature extraction( Deep learning , feature extraction , Various training models of neural network are realized in detail ):
https://download.csdn.net/download/qq_37037348/11065974
Welcome to join the Learning Project Exchange , Share all kinds of personal learning projects and learning materials , Exchange and learn from each other .
Please add group for question consultation and project source code :
QQ Group :
name :IT Project communication group
Group number :245022761
边栏推荐
- FTP文件上传文件实现,定时扫描文件夹上传指定格式文件文件到服务器,C语言实现FTP文件上传详解及代码案例实现
- QT creator test
- Case analysis of data inconsistency caused by Pt OSC table change
- SQL time injection
- Codeforces Round #753 (Div. 3)
- Common regular expression collation
- Wangeditor rich text component - copy available
- vs2019 桌面程序快速入门
- {one week summary} take you into the ocean of JS knowledge
- Why can't STM32 download the program
猜你喜欢
分布式事务的实现方案
Double to int precision loss
Learn winpwn (2) -- GS protection from scratch
分布式節點免密登錄
error C4996: ‘strcpy‘: This function or variable may be unsafe. Consider using strcpy_ s instead
Vs2019 first MFC Application
Learn winpwn (3) -- sEH from scratch
Reading BMP file with C language
How to build a new project for keil5mdk (with super detailed drawings)
PHP - whether the setting error displays -php xxx When PHP executes, there is no code exception prompt
随机推荐
Connexion sans mot de passe du noeud distribué
MTCNN人脸检测
Funny cartoon: Programmer's logic
XML文件详解:XML是什么、XML配置文件、XML数据文件、XML文件解析教程
MySQL与c语言连接(vs2019版)
【CDH】CDH5.16 配置 yarn 任务集中分配设置不生效问题
Double to int precision loss
[yarn] CDP cluster yarn configuration capacity scheduler batch allocation
Hutool中那些常用的工具类和方法
使用LinkedHashMap实现一个LRU算法的缓存
Redis面试题
[NPUCTF2020]ReadlezPHP
[AGC009D]Uninity
保姆级出题教程
Wangeditor rich text component - copy available
wangeditor富文本组件-复制可用
Detailed explanation of nodejs
使用lambda在循环中传参时,参数总为同一个值
Codeforces Round #771 (Div. 2)
L2-007 family real estate (25 points)