<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.23501"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=921193616-27062013>Your gml is in format gml3</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=921193616-27062013></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=921193616-27062013>try with:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial>format: new 
OpenLayers.Format.GML.v3()</FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=921193616-27062013></SPAN><FONT 
color=#0000ff size=2 face=Arial>i<SPAN class=921193616-27062013> had to add 
xmlns:xsi to the xml to get it loaded.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=921193616-27062013></SPAN><BR><gml:FeatureCollection 
xmlns:xsi="</FONT><A href="http://www.w3.org/2001/XMLSchema-instance"><FONT 
size=2 face=Arial>http://www.w3.org/2001/XMLSchema-instance</FONT></A><FONT 
color=#0000ff size=2 face=Arial>"  xsi:schemaLocation="</FONT><A 
href="http://www.opengis.net/gml"><FONT size=2 
face=Arial>http://www.opengis.net/gml</FONT></A><FONT color=#0000ff size=2 
face=Arial> ...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN 
class=921193616-27062013>Arnd</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><BR></DIV>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> openlayers-users-bounces@lists.osgeo.org 
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>Im Auftrag von </B>Nipuni 
Piyabasi Perera<BR><B>Gesendet:</B> Donnerstag, 27. Juni 2013 
04:59<BR><B>An:</B> openlayers-users@lists.osgeo.org<BR><B>Betreff:</B> 
[OpenLayers-Users] Issues reading a GML file<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>
<DIV>
<DIV><BR clear=all>
<DIV class=im>
<DIV>
<DIV style="FONT-FAMILY: arial,sans-serif; FONT-SIZE: 13px">
<DIV>Hi, <BR><BR></DIV>We are trying to read and visualize GML data output 
given by a WPS process in using OpenLayers. According to our current 
requirement, we write the GML output to a file. When trying to read the file 
using a client written similar to GML <A 
href="http://openlayers.org/dev/examples/gml-layer.html" 
target=_blank>example</A> with OpenLayers, it is not visualized. But 
polygon.xml[1] file works properly with the same client. </DIV>
<DIV 
style="FONT-FAMILY: arial,sans-serif; FONT-SIZE: 13px"><BR></DIV></DIV></DIV>
<DIV style="FONT-FAMILY: arial,sans-serif; FONT-SIZE: 13px">Input file we tried: 
<A href="https://www.dropbox.com/s/zxma61o566qmnb5/GML.xml" 
target=_blank>https://www.dropbox.com/s/zxma61o566qmnb5/GML.xml</A><BR>I used 
the content starting with <CODE 
style="BACKGROUND-IMAGE: none !important; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; PADDING-RIGHT: 0px !important; FONT-FAMILY: Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace !important; WHITE-SPACE: pre-wrap; FLOAT: none !important; COLOR: rgb(0,102,153) !important; FONT-SIZE: 12px; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; FONT-WEIGHT: bold !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; border-radius: 0px 0px 0px 0px">gml:FeatureCollection 
</CODE><FONT color=#000000><CODE 
style="BACKGROUND-IMAGE: none !important; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; PADDING-RIGHT: 0px !important; FONT-FAMILY: Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace !important; WHITE-SPACE: pre-wrap; FLOAT: none !important; FONT-SIZE: 12px; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; border-radius: 0px 0px 0px 0px">tag.</CODE></FONT><BR><BR></DIV>
<DIV style="FONT-FAMILY: arial,sans-serif; FONT-SIZE: 13px">[1] <A 
href="http://dev.openlayers.org/releases/OpenLayers-2.12/examples/gml/polygon.xml" 
target=_blank>http://dev.openlayers.org/releases/OpenLayers-2.12/examples/gml/polygon.xml</A></DIV><BR></DIV>Thanks,<BR></DIV>Nipuni<BR>
<DIV>
<DIV>-- <BR>
<DIV><SPAN>Nipuni Piyabasi Perera</SPAN></DIV><SPAN>Undergraduate</SPAN>
<DIV>Department of Computer Science And Engineering</DIV>
<DIV>University of Moratuwa
<DIV>Sri Lanka</DIV></DIV></DIV></DIV></DIV></BODY></HTML>