return;
}
EClass ec = (EClass) SvgPackage.eINSTANCE.getEClassifier("Svg"+Character.toUpperCase(localName.charAt(0))+ localName.substring(1) + "Element");
if( ec != null ) {
SvgElement e = (SvgElement) EcoreUtil.create(ec);
for (int i = 0; i < attributes.getLength(); i++) {
if (SVG_NS.equals(attributes.getURI(i)) || "".equals(attributes.getURI(i))) {
String name = attributes.getLocalName(i).replaceAll("-", "_");
EStructuralFeature f = e.eClass().getEStructuralFeature(name);
if (f != null) {
Object o = EcoreUtil.createFromString((EDataType) f.getEType(), attributes.getValue(i));
e.eSet(f, o);
} else {
System.err.println("Could not find feature '" + name + "' in " + e.eClass().getName());
}
} else if( XLINK_NS.equals(attributes.getURI(i)) ) {
String name = "xlink__" + attributes.getLocalName(i).replaceAll("-", "_");
EStructuralFeature f = e.eClass().getEStructuralFeature(name);
if( f != null ) {
Object o = EcoreUtil.createFromString((EDataType) f.getEType(), attributes.getValue(i));
e.eSet(f, o);
} else {
System.err.println("Could not find feature '" + name + "' in " + e.eClass().getName());
}
}
}
if( elementStack.isEmpty() ) {