当前位置:网站首页>How to quickly parse XML documents through C (in fact, other languages also have corresponding interfaces or libraries to call)
How to quickly parse XML documents through C (in fact, other languages also have corresponding interfaces or libraries to call)
2022-07-04 10:30:00 【Big bear loves to work】
The book follows : Study XML DOM– analysis XML file
C# Access and operation in XML file
1.[ In the memory XML Data processing | Microsoft Docs]
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-s3fZSqkd-1638093309086)(E:\015.2MarkDown note \image-20211125202907963.png)]
2.[XmlDocument class (System.Xml) | Microsoft Docs]
public class XmlDocument : System.Xml.XmlNode
- This page is mainly about XmlDocument Methods 、 attribute 、 Details of the event , We can use it as needed
3. Several commonly used methods and properties
| attribute / Method | Function description |
|---|---|
| Attributes | Get one XmlAttributeCollection, It contains the characteristics of this node . |
| DocumentElement | obtain XML The root of the document XmlElement. |
| FirstChild | Get the first child of the node . |
| ChildNodes | Get all the child nodes of the node . |
| LastChild | Get the last child of the node . |
| Name | Get the qualified name of the node . |
| LocalName | Get the local name of the node . |
| AppendChild(XmlNode) | Add the specified node to the end of the node's child list . |
| Clone() | Create a copy of this node . |
| CloneNode(Boolean) | Create a copy of this node . |
| CreateElement(String) | Create an element with the specified name . |
| CreateNode(String, String, String) | Create a node with the specified type 、Name and NamespaceURI Of XmlNode. |
| CreateTextNode(String) | Creates a with the specified text XmlText. |
| CreateXmlDeclaration(Str, Str, Str) | Create a with the specified value XmlDeclaration node . |
| Equals(Object) | Determines whether the specified object is equal to the current object .( Inherited from Object) |
| GetElementsByTagName(String) | Return to one XmlNodeList, It contains and specifies Name Columns of all child elements that match |
| Load(Stream) | Load from the specified stream XML file . |
| Load(String) | From the specified URL load XML file . |
| RemoveAll() | Remove all child nodes of the current node and / Or attributes . |
| RemoveChild(XmlNode) | Remove the specified child node . |
| Save(String) | take XML Save the document to the specified file , If the file exists , Then this method will overwrite it |
边栏推荐
- From programmers to large-scale distributed architects, where are you (I)
- 六月份阶段性大总结之Doris/Clickhouse/Hudi一网打尽
- Custom type: structure, enumeration, union
- Write a program to define an array with 10 int elements, and take its position in the array as the initial value of each element.
- Exercise 8-7 string sorting (20 points)
- leetcode842. Split the array into Fibonacci sequences
- Linked list operation can never change without its roots
- Introduction to tree and binary tree
- Evolution from monomer architecture to microservice architecture
- Student achievement management system (C language)
猜你喜欢

VLAN part of switching technology

Tables in the thesis of latex learning

Huge number multiplication (C language)

Two way process republication + routing policy

Rhcsa day 9

基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1

【Day1】 deep-learning-basics

Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment

Today's sleep quality record 78 points

183 sets of free resume templates to help everyone find a good job
随机推荐
If the uniapp is less than 1000, it will be displayed according to the original number. If the number exceeds 1000, it will be converted into 10w+ 1.3k+ display
RHCE day 3
Exercise 8-7 string sorting (20 points)
Write a program to judge whether the two arrays are equal, and then write a similar program to compare the two vectors.
Does any teacher know how to inherit richsourcefunction custom reading Mysql to do increment?
Exercise 7-2 finding the maximum value and its subscript (20 points)
leetcode1-3
Latex insert picture, insert formula
Si vous ne connaissez pas ces quatre modes de mise en cache, vous osez dire que vous connaissez la mise en cache?
leetcode1-3
Delayed message center design
Rhcsa day 10 operation
/*Write a loop to output the elements of the list container in reverse order*/
BGP ---- border gateway routing protocol ----- basic experiment
Rhcsa learning practice
The time difference between the past time and the present time of uniapp processing, such as just, a few minutes ago, a few hours ago, a few months ago
Knapsack problem and 0-1 knapsack problem
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1
AUTOSAR from getting started to mastering 100 lectures (106) - SOA in domain controllers
Ruby time format conversion strftime MS matching format