buildXml method

void buildXml(
  1. XmlBuilder builder
)

Implementation

void buildXml(XmlBuilder builder) {
  builder.element("item", attributes: {
    "rdf:about": "http://example/org/item/",
  }, nest: () {
    if (title != null) {
      builder.element("title", nest: title);
    }

    if (description != null) {
      builder.element("description", nest: description);
    }

    if (link != null) {
      builder.element("link", nest: link);
    }

    if (content != null) {
      content!.buildXml(builder);
    }

    // TODO: dc
  });
}