Example #1
0
        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);
        }
Example #2
0
 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;
        }