 		protected static const ATTRTYPE:String   = "attr.type";
 		protected static const DEFAULT:String    = "default";
 		
-		protected static var sbgnml:XML;
+		protected static var glyphToXML:Object;
+		protected static var arcToXML:Object;
 		
 		// map for reaching the owners of compartments from the port id.
 		protected var portIDtoOwnerGlyph:Object ={};

			//parse arcs
			for each (var arc:XML in arcs) 
			{
				e = parseArcData(arc,arcSchema);			
				arcSprites.push(e);
			}
			
			
			return new DataSet(
				new DataTable(glyphSprites,glyphSchema),
				new DataTable(arcSprites,arcSchema)

			var glyphSchema:DataSchema = initGlyphSchema();
			var arcSchema:DataSchema = initArcSchema();
			
			var glyphs:XMLList = sbgnML.elements("map")..glyph;
			var arcs:XMLList = sbgnML.elements("map").elements("arc");	
			
			
			//parse glyphs
			for each (var glyph:XML in glyphs) 
