当前位置:网站首页>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
边栏推荐
猜你喜欢
【yarn】CDP集群 Yarn配置capacity调度器批量分配
Cookie setting three-day secret free login (run tutorial)
B tree and b+ tree of MySQL index implementation
Reading BMP file with C language
How to build a new project for keil5mdk (with super detailed drawings)
Vs2019 desktop app quick start
Pytoch Foundation
QT creator runs the Valgrind tool on external applications
MongoDB
Double to int precision loss
随机推荐
L2-006 tree traversal (25 points)
Codeforces Round #753 (Div. 3)
Heating data in data lake?
[蓝桥杯2017初赛]包子凑数
Nodejs connect mysql
AcWing 1298. Solution to Cao Chong's pig raising problem
MySQL数据库面试题
JS array + array method reconstruction
ES6 let 和 const 命令
Aborted connection 1055898 to db:
L2-006 树的遍历 (25 分)
[Bluebridge cup 2020 preliminary] horizontal segmentation
ES6 promise object
L2-007 家庭房产 (25 分)
About string immutability
nodejs连接Mysql
L2-007 family real estate (25 points)
[BSidesCF_2020]Had_a_bad_day
Common regular expression collation
互联网协议详解