private void TransformLoop(XmlNodeContext parentContext) { foreach (XmlNode xmlNode in parentContext.Node.ChildNodes) { XmlElement element = xmlNode as XmlElement; if (element != null) { XmlElementContext elementContext = this.CreateElementContext(parentContext as XmlElementContext, element); try { this.HandleElement(elementContext); } catch (Exception ex) { this.HandleException(ex, (XmlNodeContext)elementContext); } } } }
private Exception WrapException(Exception ex, XmlNodeContext context) { return(XmlNodeException.Wrap(ex, context.Node)); }
private void HandleException(Exception ex, XmlNodeContext context) { this.HandleException(this.WrapException(ex, context)); }
private Exception WrapException(Exception ex, XmlNodeContext context) { return XmlNodeException.Wrap(ex, context.Node); }