Ejemplo n.º 1
0
 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);
             }
         }
     }
 }
Ejemplo n.º 2
0
 private Exception WrapException(Exception ex, XmlNodeContext context)
 {
     return(XmlNodeException.Wrap(ex, context.Node));
 }
Ejemplo n.º 3
0
 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);
 }
 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 void HandleException(Exception ex, XmlNodeContext context)
 {
     this.HandleException(this.WrapException(ex, context));
 }