private XmlBuilder CreateBuilder(XmlNode node, Action <XmlBuilder> action) { var builder = new XmlBuilder(xmlDocument, node, namespaces, defaultPrefix); action?.Invoke(builder); return(builder); }
public XmlBuilder WithNamespace(string prefix, Action <XmlBuilder> action) { var builder = new XmlBuilder(xmlDocument, xmlNode, namespaces, prefix); action.Invoke(builder); return(builder); }