예제 #1
0
 public void WriteXml(StringBuilder sb, int indent)
 {
     if (Entries?.data_items != null)
     {
         foreach (var e in Entries.data_items)
         {
             YvrXml.OpenTag(sb, indent, "Item");
             e.WriteXml(sb, indent + 1);
             YvrXml.CloseTag(sb, indent, "Item");
         }
     }
 }
예제 #2
0
 public static void WriteXmlNode(VehicleRecordList l, StringBuilder sb, int indent, string name = "VehicleRecordList")
 {
     if (l == null)
     {
         return;
     }
     if ((l.Entries?.data_items == null) || (l.Entries.data_items.Length == 0))
     {
         YvrXml.SelfClosingTag(sb, indent, name);
     }
     else
     {
         YvrXml.OpenTag(sb, indent, name);
         l.WriteXml(sb, indent + 1);
         YvrXml.CloseTag(sb, indent, name);
     }
 }