card.addTail(p);
Element a = domFactory.createElement();
a.setName("a");
a.setAttribute("href", "wtai://wp/mc;20405050606");
Text t = domFactory.createText();
t.append("20405050606");
a.addHead(t);
p.addTail(a);
Element anchor = domFactory.createElement();
anchor.setName("anchor");
anchor.setAttribute("href", "wtai://wp/mc;20405050606");
anchor.addHead(t);
p.addTail(anchor);
String[] tags = {"big", "b", "em", "i", "small", "strong", "u"};
for (int i = 0; i < tags.length; i++) {
Element tag = domFactory.createElement();
tag.setName(tags[i]);
Text text = domFactory.createText();
text.append("This is " + tags[i] + " text.");
tag.addHead(text);
p.addTail(tag);
}
wml.addHead(card);