internal XmlParserContext ShallowCopy() => new XmlParserContext { Position = Position, CurrentState = CurrentState, CurrentStateLength = CurrentStateLength, StateTag = StateTag, PreviousState = PreviousState, BuildTree = false, KeywordBuilder = new StringBuilder(KeywordBuilder.ToString()), Nodes = Nodes.ShallowCopy() };