当前位置:网站首页>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 |
边栏推荐
- Dynamic address book
- The bamboo shadow sweeps the steps, the dust does not move, and the moon passes through the marsh without trace -- in-depth understanding of the pointer
- Hlk-w801wifi connection
- Static comprehensive experiment ---hcip1
- Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment
- On binary tree (C language)
- Vanishing numbers
- Write a program to judge whether the elements contained in a vector < int> container are 9.20: exactly the same as those in a list < int> container.
- 基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1
- Uniapp--- initial use of websocket (long link implementation)
猜你喜欢
Basic data types of MySQL
Seven examples to understand the storage rules of shaped data on each bit
Some summaries of the third anniversary of joining Ping An in China
Rhcsa12
如果不知道這4種緩存模式,敢說懂緩存嗎?
C language - stack
On binary tree (C language)
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
Devop basic command
【Day1】 deep-learning-basics
随机推荐
Snake (C language)
Deep learning 500 questions
Servlet基本原理与常见API方法的应用
Write a program to judge whether the elements contained in a vector < int> container are 9.20: exactly the same as those in a list < int> container.
Online troubleshooting
Exercise 8-7 string sorting (20 points)
Tables in the thesis of latex learning
【OpenCV 例程200篇】218. 多行倾斜文字水印
2021-08-10 character pointer
A little feeling
[FAQ] summary of common causes and solutions of Huawei account service error 907135701
Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
Rhcsa12
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 2
From programmers to large-scale distributed architects, where are you (2)
BGP ---- border gateway routing protocol ----- basic experiment
VLAN part of switching technology
Rhcsa day 10 operation
When I forget how to write SQL, I
Rhcsa day 9