// NOTE: Do we need a base here?
XmlDocument document = new XmlDocument((URL) null);
XmlReader reader = new XmlReader();
reader.parse(document, in);
XmlElement root = document.getRoot();
String name = root.getType();
if (name.equals("svg")) {
Iterator children = root.elements();
while (children.hasNext()) {
XmlElement child = (XmlElement) children.next();
name = child.getType();
if (name.equals("text")) {
text = child.getPCData();
String style = (String) child.getAttributeMap().get(
"style");
if (style != null) {
StringTokenizer tokenizer = new StringTokenizer(
style, ";");