#include <stdio.h>
#include <sxml.h>

int main(int argc, char * argv[])
{
  sxml_node_t *	root;

  if ((root = sxml_new_vertex()) != NULL) {
    const char		name[] = "Kouichi ABE (WALL)";
    const char		email[] = "kouichi@MysticWALL.COM";
    sxml_node_t *	ep;

    if ((ep = sxml_new_element(root, "person")) != NULL) {
      sxml_set_node(ep, "name", name);
      sxml_set_node(ep, "email", email);
    }
    sxml_print_tree(root, stdout);
    sxml_delete_node(root);
  }

  return 0;
}
