<HTML><HEAD>
<META content="text/html; charset=iso-8859-15" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18783"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Segoe UI">
<DIV>I've had similar issues where my functions don't return what I am expecting.&nbsp; Usually the DOM tool in Firebug helps out because I can see all the properties.&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>Shawn<BR><BR>&gt;&gt;&gt; On 6/23/2009 at 4:16 PM, Nicholas Efremov-Kendall &lt;n.e.kendall@gmail.com&gt; wrote:<BR></DIV>
<DIV style="BORDER-LEFT: #050505 1px solid; BACKGROUND-COLOR: #f3f3f3; MARGIN: 0px 0px 0px 15px; PADDING-LEFT: 7px">Hi all,<BR><BR>Another newbie question here. I've successfully created popups, but now I'm having trouble reading the GML attributes and formating the text. I can't seem to figure out the dom structure of the GML. <A href="http://feature.id">feature.id</A> returns OpenLayers.FeatureVector_210, which I'm pretty sure is OL's feature ID.<BR><BR>When I use this formatting the text only feature.attribures returns this "[object Object]", the others return "undefined."<BR><BR>"&lt;div style='font-size:.8em'&gt;Site_ID: " + <BR>feature.attributes.title +"&lt;hr /&gt;<BR>Locality: " + feature.attributes.title+"&lt;br/&gt;<BR>Description: " +feature.attributes+"&lt;br/&gt;<BR>This should do something else&lt;/div&gt;",<BR><BR>here's the structure of my GML<BR><BR>&lt;gml:featureMember&gt;<BR>&lt;ogr:site2000 fid="F0"&gt;<BR>&lt;ogr:geometryProperty&gt;&lt;gml:Point srsName="EPSG:32632"&gt;&lt;gml:coordinates&gt;683247.00000048568,3736338.9999997145&lt;/gml:coordinates&gt;&lt;/gml:Point&gt;&lt;/ogr:geometryProperty&gt;<BR>&lt;ogr:NEWSITE_&gt;14811205&lt;/ogr:NEWSITE_&gt;<BR>&lt;ogr:UTM_E&gt;683247&lt;/ogr:UTM_E&gt;<BR>&lt;ogr:UTM_N&gt;3736339&lt;/ogr:UTM_N&gt;<BR>&lt;/ogr:site2000&gt;<BR>&lt;/gml:featureMember&gt;<BR><BR>Any suggestions on how to read the gml attributes, rather than OL's feature descriptions?<BR><BR>Sorry for the poorly articulated question.<BR><BR>
<DIV id=refHTML></DIV></DIV></BODY></HTML>