public INodeWriter CreateElement(string name, ISerialiserNode parentNode) { var newbornElement = document.CreateElement(name); parentNode.AppendChild(name); var newborn = new NXmlNodeWriter(parentNode.Depth + 1, name); newborn.BeginWrite(streamWriter); return(newborn); }
public ISerialiserNode AppendChild(string name) { return(node.AppendChild(name)); }
public INodeWriter CreateElement(string name, ISerialiserNode parentNode) { var newbornElement = document.CreateElement(name); parentNode.AppendChild(name); var newborn = new NXmlNodeWriter(parentNode.Depth + 1, name); newborn.BeginWrite(streamWriter); return newborn; }