if (obj instanceof SVGElement) {
SVGElement child = (SVGElement) obj;
textGraph.appendChild(child);
} else if (obj instanceof String) {
String str = (String) obj;
CharacterData cd = new CharacterDataImpl();
cd.setData(str);
textGraph.appendChild(cd);
}
// System.out.println(child);
}
/* retrieve properties */