12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- using System;
- using System.Xml;
- namespace SamplesCommon
- {
-
-
-
- public class XmlNodeWrapper
- {
- private XmlNode m_node = null;
- private XmlNodeWrapper(){}
- public XmlNodeWrapper(XmlNode node)
- {
- m_node = node;
- }
- public XmlNode XMLNODE
- {
- set
- {
- m_node = value;
- }
- get
- {
- return m_node;
- }
- }
- public override string ToString()
- {
- return m_node.Attributes.GetNamedItem("name").InnerText;
- }
- public string PATH
- {
- get
- {
- string pkgPath = m_node.Attributes.GetNamedItem("_path").InnerText;
-
- string path = pkgPath.Substring(pkgPath.IndexOf(".") + 1);
- return path;
- }
- }
- }
- }
|