当前位置:网站首页>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 |
边栏推荐
- MPLS: multi protocol label switching
- Ruby time format conversion strftime MS matching format
- Exercise 9-3 plane vector addition (15 points)
- Rhcsa - day 13
- Whether a person is reliable or not, closed loop is very important
- Collection of practical string functions
- Uniapp--- initial use of websocket (long link implementation)
- 有老师知道 继承RichSourceFunction自定义读mysql怎么做增量吗?
- uniapp---初步使用websocket(长链接实现)
- Number of relationship models
猜你喜欢

Vs201 solution to failure to open source file HPP (or link library file)

For programmers, if it hurts the most...

Architecture introduction

Quick sort (C language)

A little feeling

leetcode842. Split the array into Fibonacci sequences

183 sets of free resume templates to help everyone find a good job

Debug:==42==ERROR: AddressSanitizer: heap-buffer-overflow on address

用数据告诉你高考最难的省份是哪里!

Online troubleshooting
随机推荐
How to teach yourself to learn programming
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
Write a program to judge whether the two arrays are equal, and then write a similar program to compare the two vectors.
Snake (C language)
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
Some summaries of the third anniversary of joining Ping An in China
Architecture introduction
Ruby time format conversion strftime MS matching format
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 1
183 sets of free resume templates to help everyone find a good job
Press the button wizard to learn how to fight monsters - identify the map, run the map, enter the gang and identify NPC
Vanishing numbers
Number of relationship models
BGP advanced experiment
对于程序员来说,伤害力度最大的话。。。
What is an excellent architect in my heart?
System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!
uniapp 处理过去时间对比现在时间的时间差 如刚刚、几分钟前,几小时前,几个月前
【OpenCV 例程200篇】218. 多行倾斜文字水印
Work order management system OTRs