LINQ TO XML Common Class
个人收集、整理了一些LINQ TO XML的基本方法,希望各位大虾多多指导:
/// <summary>
///Xml节点属性
/// </summary>
public class XmlAttribute
{
public XmlAttribute()
{
}
public XmlAttribute(string _key,object _value)
{
Key = _key;
Value = _value;
}
/// <summary>
/// 节点属性名
/// </summary>
public string Key { get; set; }
/// <summary>
/// 节点值
/// </summary>
public object Value { get; set; }
}
/// <summary>
///Xml文件节点
/// </summary>
public class XmlNode
{
public XmlNode()
{
}
public XmlNode(XElement _xemt)
{
xemt = _xemt;
}
public XmlNode(string _nodeName, object _nodeValue)
{
nodeName = _nodeName;
nodeValue = _nodeValue;
}
public XmlNode(string _nodeName, object _nodeValue, List<XmlNode> _childNodes, List<XmlAttribute> _attributeList)
{
nodeName = _nodeName;
nodeValue = _nodeValue;
childNodes = _childNodes;
attributeList = _attributeList;
}
/// <summary>
/// 节点对象
/// </summ
相关文档:
XML (EXtensible Markup Language)
XML is a
cross-platform, software and hardware independent tool for transmitting
information.
Prolog
XML
Declaration
Processing
Instructions
DOCTYPE
Declaration
Elements
Attributes
XML
Comments
CDATA
Sections
Character
and Entity Refere ......
什么是 XML?
可扩展标记语言 (XML) 是 Web 上的数据通用语言。它使开发人员能够将结构化数据,从许多不同的应用程序传递到桌面,进行本地计算和演示。XML 允许为特定应用程序创建唯一的数据格式。它还是在服务器之间传输结构化数据的理想格式。
什么是 MSXML?
MSXML 是提供核心 XML 服务的 Microsoft 软 ......
wsdl.xml文件
<?xml version="1.0" encoding="UTF-8" ?>
<definitions name="MobilePhoneService"
targetNamespace="www.mobilephoneservice.com/MobilePhoneService-interface"
xmlns="http://schemas.xmlsoap.org/wsdl/"
  ......
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:XML id="xmlSource">
<node label="grandFather" state="unchecked">
<node label="Father" state="un ......
test.html
———————————————————————————————————————& ......