public Package(XPathNavigator xPathNavigator)
: base(xPathNavigator)
{
this.m_Attributes = new Interface.WATFDictionary<string, string>();
XPathNavigator copyXPathNavigator = xPathNavigator.CreateNavigator();
if(copyXPathNavigator.MoveToFirstAttribute())
{
if(copyXPathNavigator.Name.Equals(GlobalDefine.Keyword.Executive.Path))
{
this.m_Attributes.Add(copyXPathNavigator.Name, Path.Value(xPathNavigator));
}
else if(copyXPathNavigator.Name.Equals(GlobalDefine.Keyword.Executive.Prefix))
{
this.m_Attributes.Add(copyXPathNavigator.Name, Prefix.Value(xPathNavigator));
}
while (copyXPathNavigator.MoveToNextAttribute())
{
if (copyXPathNavigator.Name.Equals(GlobalDefine.Keyword.Executive.Path))
{
this.m_Attributes.Add(copyXPathNavigator.Name, Path.Value(xPathNavigator));
}
else if (copyXPathNavigator.Name.Equals(GlobalDefine.Keyword.Executive.Prefix))
{
this.m_Attributes.Add(copyXPathNavigator.Name, Prefix.Value(xPathNavigator));
}
}
}
}