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

		/** @inheritDoc */
		public function write(ds:DataSet, output:IDataOutput=null):IDataOutput 
		{
			if (output == null) output = new ByteArray();
			sbgnml.setNamespace(new Namespace(SBGN_NAMESPACE));
			output.writeUTFBytes(sbgnml.toXMLString());
			
			return output;
		}
		
		/**

				}
				
				lookup[cns.data.id] = cns;
				glyphToXML[cns.data.id] = glyph;
			}
			
			// Add Child glyphs
