private bool IsFoliated(XmlNode node) { if (node != null && node is XmlBoundElement) return ((XmlBoundElement)node).IsFoliated; return true; }