public void Write(XmlWriter writer, Path path) { if (!path.Visible) { return; } writer.WriteStartElement("g"); var elementWriter = new ElementWriter { GenerationOptions = GenerationOptions }; elementWriter.WriteAttributes(writer, path); WriteAttributes(writer, path); elementWriter.WriteSubElements(writer, path); WriteSubElements(writer, path); writer.WriteEndElement(); }