Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the skills of using XML

Shulou Source: shulou.com Published: 2022-06-03 12:15:04 11月15日 Update

This article mainly introduces the use of XML skills, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

Tip 1

The difference between XmlNode.InnerText and .InnerXml is that the former changes the differences in the content, so programs that want to merge the two pieces of XmlDocument can only use the

XmlDocumentFragment.InnerXml = XmlNode.OuterXml

Tip 2

/ XPath: string end-with

Tip 3

If a XML document fails in Load, it is not legal at all; whether it meets the requirements of a certain Schema (XSD) is a valid check, using the Schemas and ValidationType properties of the XmlValidatingReader object.

Tip 4

The XmlDataDocument class is derived from XmlDocument, and most importantly, a DataSet attribute is added. However, this class is not provided by System.Xml, but by System.Data. For applications that always have to deal with databases, they should refer to System.Data anyway, rather than using XmlDataDocument at all.

Tip 5

How do I save DataSet updates in a XmlDataDocument object to a database? DataSet itself has an AcceptChanges method, so you only need to:

XmlDataDoc.DataSet.AcceptChanges ()

Thank you for reading this article carefully. I hope the article "what are the skills of using XML" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Skills articles objects properties data databases methods programs valid important value interests content and at the same time applications documents more validity friends Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Linux vpn Shulou Technology Apple