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); }
public void AddAttribute(string attributeName, int value) { node.AddAttribute(attributeName, value); }