protected override void DoAction() { if (XmlNav == null) { throw new ActionException("XML file not opened, or incorrect variable name", this); } String xPath = String.Format("number({0})", ParseStringForVariable(XPath)); Variables[ParseStringForVariable(ResultVar)] = (Double)XmlNav.Evaluate(ParseStringForVariable(xPath)); }
protected override void DoAction() { if (XmlNav == null) { throw new ActionException("XML file not opened, or incorrect variable name", this); } string parsed = ParseStringForVariable(XPath); String xPath = String.Format("string({0})", parsed); string varname = ParseStringForVariable(ResultVar); Variables[varname] = XmlNav.Evaluate(xPath) as String; }
protected override void DoAction() { if (XmlNav == null) { throw new ActionException("XML file not opened, or incorrect variable name", this); } String xPath = String.Format("number(count({0}))", ParseStringForVariable(XPath)); var result = XmlNav.Evaluate(xPath); String parsedResultVar = ParseStringForVariable(ResultVar); Variables[parsedResultVar] = result; }