Пример #1
0
        private XmlBuilder CreateBuilder(XmlNode node, Action <XmlBuilder> action)
        {
            var builder = new XmlBuilder(xmlDocument, node, namespaces, defaultPrefix);

            action?.Invoke(builder);
            return(builder);
        }
Пример #2
0
        public XmlBuilder WithNamespace(string prefix, Action <XmlBuilder> action)
        {
            var builder = new XmlBuilder(xmlDocument, xmlNode, namespaces, prefix);

            action.Invoke(builder);
            return(builder);
        }