public void AddListRow(string content, HTMLAttribute[] attributes) { listBody.WriteStartElement("li"); HTMLAttribute.AttributeWriter(listBody, attributes); listBody.WriteString(content); listBody.WriteEndElement(); }
protected void AddElement(XmlWriter xmlBody, string element, string content, HTMLAttribute[] attributes) { xmlBody.WriteStartElement(element); HTMLAttribute.AttributeWriter(xmlBody, attributes); xmlBody.WriteString(content); xmlBody.WriteEndElement(); }
public TableElement(HTMLAttribute[] attributes) { tableBody = XmlWriter.Create(@"D:/HTMLWriter/XML/TableConfig" + tableCount + ".xml", xmlSettings); tableBody.WriteStartDocument(); tableBody.WriteStartElement("table"); HTMLAttribute.AttributeWriter(tableBody, attributes); }
public ListElement(bool isOrdered, HTMLAttribute[] attributes) { listBody = XmlWriter.Create(@"D:/HTMLWriter/XML/ListConfig" + listCount + ".xml", xmlSettings); listBody.WriteStartDocument(); if (isOrdered) { listBody.WriteStartElement("ol"); } else { listBody.WriteStartElement("ul"); } HTMLAttribute.AttributeWriter(listBody, attributes); }
public void DeclareTableBodyCell(string content, HTMLAttribute[] attributes) { tableBody.WriteStartElement("td"); tableBody.WriteString(content); HTMLAttribute.AttributeWriter(tableBody, attributes); }
public void DeclareTableRow(HTMLAttribute[] attributes) { tableBody.WriteStartElement("tr"); HTMLAttribute.AttributeWriter(tableBody, attributes); }