private void walkTopicNode(TopicXmlStack stack, XmlElement child) { var request = stack.AddTopic(child); if (child.HasChildNodes) { stack.PushTopic(request); walkChildren(child, stack); stack.PopTopic(); } }
public TopicRequest Parse(string directory, XmlDocument document) { var element = document.DocumentElement; var stack = new TopicXmlStack(directory); var request = stack.AddTopic(element); stack.PushTopic(request); walkChildren(element, stack); return request; }
public TopicRequest Parse(string directory, XmlDocument document) { var element = document.DocumentElement; var stack = new TopicXmlStack(directory); var request = stack.AddTopic(element); stack.PushTopic(request); walkChildren(element, stack); return(request); }