Exemple #1
0
 private void Initialize()
 {
     RootNode = new NXmlNodeWriter(0, rootNodeName);
     if (streamWriter != null)
     {
         RootNode.BeginWrite(streamWriter);
     }
     RootNode.AddAttribute("version", version.ToString());
 }
 public NXmlTypedElementWriter(INodeWriter node, string typeName, TextWriter streamWriter, int depth)
 {
     this.node = node;
     this.depth = depth;
     node.AddAttribute("type", typeName);
 }
 private void Initialize()
 {
     RootNode = new NXmlNodeWriter(0, rootNodeName);
     if (streamWriter != null)
     {
         RootNode.BeginWrite(streamWriter);
     }
     RootNode.AddAttribute("version", version.ToString());
 }
Exemple #4
0
 public void AddAttribute(string attributeName, int value)
 {
     node.AddAttribute(attributeName, value);
 }
Exemple #5
0
 public NXmlTypedElementWriter(INodeWriter node, string typeName, TextWriter streamWriter, int depth)
 {
     this.node  = node;
     this.depth = depth;
     node.AddAttribute("type", typeName);
 }