当前位置:网站首页>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 )

  1. XML Designed to transmit and store data .
  2. XML The data from HTML Separate
  3. XML Simplify data sharing
  4. XML Simplify data transfer
  5. XML Simplify data transfer
  6. 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

  1. XML The document must have a root element

  2. XML Optional parts of the declaration file ,<?xml version="1.0" encoding="utf-8"?>

  3. be-all XML Element must have a close tag

  4. XML Tags are case sensitive

  5. XML Must nest... Correctly

  6. XML Attribute values must be quoted

  7. XML The comments in ,<!-- This is a comment -->

  8. 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

原网站

版权声明
本文为[Forgotten world]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060913165765.html