当前位置:网站首页>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 |
边栏推荐
- Sword finger offer 31 Stack push in and pop-up sequence
- Realsense d435 d435i d415 depth camera obtains RGB map, left and right infrared camera map, depth map and IMU data under ROS
- Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
- uniapp---初步使用websocket(长链接实现)
- 2021-08-10 character pointer
- 基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1
- Occasional pit compiled by idea
- 2020-03-28
- RHCE - day one
- Legion is a network penetration tool
猜你喜欢
【Day1】 deep-learning-basics
Latex learning insertion number - list of filled dots, bars, numbers
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 1
DCL statement of MySQL Foundation
uniapp 处理过去时间对比现在时间的时间差 如刚刚、几分钟前,几小时前,几个月前
leetcode842. Split the array into Fibonacci sequences
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
Architecture introduction
【Day2】 convolutional-neural-networks
Linked list operation can never change without its roots
随机推荐
Leetcode48. Rotate image
DML statement of MySQL Foundation
Exercise 8-10 output student grades (20 points)
Whether a person is reliable or not, closed loop is very important
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
Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment
【Day2】 convolutional-neural-networks
Latex learning insertion number - list of filled dots, bars, numbers
What is an excellent architect in my heart?
Velodyne configuration command
DCL statement of MySQL Foundation
Pod management
Map container
leetcode729. My schedule 1
Hlk-w801wifi connection
Introduction to extensible system architecture
Rhcsa - day 13
uniapp 小于1000 按原数字显示 超过1000 数字换算成10w+ 1.3k+ 显示
/*The rewriter outputs the contents of the IA array. It is required that the type defined by typedef cannot be used in the outer loop*/
Does any teacher know how to inherit richsourcefunction custom reading Mysql to do increment?