[fdo-users] XML Output and Namespaces

Crispin_at_1Spatial crispin.hoult at 1spatial.com
Thu Sep 2 08:08:07 EDT 2010


Hi,

When using the XmlFeatureWriter on an object with association/object
properties the sub properties are in a "wfs" namespace.  However, this is
not defined in the list of namespaces in the XML so I can't convert the
stream/file into a .net XML object.

So I thought I could use something like the sample below.
However, whenever I add a namespace to the xmlFlags and include this in the
serialiser I get an error when I serialise "Item index out of bounds. "

Am I approaching this in the correct way?  I have tried lots of variations
on the theme.

 Crispin


	OSGeo.FDO.Common.StringElement strE = new
OSGeo.FDO.Common.StringElement("xmlns:wfs=\"http://www.opengis.net/wfs\"");

	xmlFlags.Namespaces.Add(strE);

	XmlFeatureSerializer.XmlSerialize(readFeature, xmlFtWriter, xmlFlags);

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/XML-Output-and-Namespaces-tp5490860p5490860.html
Sent from the FDO Users mailing list archive at Nabble.com.


More information about the fdo-users mailing list