public void SetParentProperties(XPathNodeType xptyp) { if (xptyp == XPathNodeType.Attribute) { this.props |= HasAttributeBit; } else { this.props |= HasContentChildBit; if (xptyp == XPathNodeType.Element) this.props |= HasElementChildBit; } }