public virtual XObject Visit(XObject node) { if (node != null) { return(node.Accept(this)); } return(node); }