当前位置:网站首页>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
边栏推荐
猜你喜欢
{one week summary} take you into the ocean of JS knowledge
AcWing 1298. Solution to Cao Chong's pig raising problem
{一周总结}带你走进js知识的海洋
vs2019 使用向导生成一个MFC应用程序
小L的试卷
Software I2C based on Hal Library
Request object and response object analysis
分布式事务的实现方案
B tree and b+ tree of MySQL index implementation
分布式节点免密登录
随机推荐
L2-006 tree traversal (25 points)
人脸识别 face_recognition
vs2019 第一个MFC应用程序
ES6 Promise 对象
2019 Tencent summer intern formal written examination
[蓝桥杯2021初赛] 砝码称重
MongoDB
2019腾讯暑期实习生正式笔试
Composition des mots (sous - total)
MySQL与c语言连接(vs2019版)
[BSidesCF_2020]Had_ a_ bad_ day
[Blue Bridge Cup 2017 preliminary] buns make up
MySQL主从复制的原理以及实现
QT creator uses Valgrind code analysis tool
Vs2019 use wizard to generate an MFC Application
Pytorch基础
Password free login of distributed nodes
yarn安装与使用
[Blue Bridge Cup 2017 preliminary] grid division
【CDH】CDH/CDP 环境修改 cloudera manager默认端口7180