コード例 #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);
        }
コード例 #2
0
 public ISerialiserNode AppendChild(string name)
 {
     return(node.AppendChild(name));
 }
コード例 #3
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;
        }