public void Visit(MarkupNode markupnode, INode parentNode) { var parentElement = parentNode as IElementNode; XmlName propertyName; if (!ApplyPropertiesVisitor.TryGetPropertyName(markupnode, parentNode, out propertyName)) { return; } if (Skips.Contains(propertyName)) { return; } if (parentElement.SkipProperties.Contains(propertyName)) { return; } var markupString = markupnode.MarkupString; var node = ParseExpression(ref markupString, markupnode.NamespaceResolver, markupnode) as IElementNode; if (node != null) { ((IElementNode)parentNode).Properties[propertyName] = node; node.Parent = parentNode; } }
public void Visit(ListNode node, INode parentNode) { //this is a gross hack to keep ListNode alive. ListNode must go in favor of Properties XmlName name; if (ApplyPropertiesVisitor.TryGetPropertyName(node, parentNode, out name)) { node.XmlName = name; } }