Deserializing..

  • Thread starter Thread starter Finn Stampe Mikkelsen
  • Start date Start date
F

Finn Stampe Mikkelsen

I'm trying to deserialize an xml file. I have used XSD to create first the
schema and then the appropriate c# classes, but when i then try to
deserialize the xml, it either returns with a null reference or comes back
with an error...

Could somebody help me deserialize this xml ??

http://www.linett.dk/xml.zip

TIA

/Finn
 
Finn Stampe Mikkelsen said:
I'm trying to deserialize an xml file. I have used XSD to create first the
schema and then the appropriate c# classes, but when i then try to
deserialize the xml, it either returns with a null reference or comes back
with an error...

Btw. I have tried to load the xml into at dataset, using the same generated
xsd schema and this works great, but is not what i'm looking for.

But i se that as evidence of an correct xsd schema.. (Which is autogenerated
so should be correct)

/Finn
 
Finn Stampe Mikkelsen said:
I'm trying to deserialize an xml file. I have used XSD to create first the
schema and then the appropriate c# classes, but when i then try to
deserialize the xml, it either returns with a null reference or comes back
with an error...

Could somebody help me deserialize this xml ??

http://www.linett.dk/xml.zip

TIA

/Finn

Since it appears you are trying to use KML, I tried to load it into Google
Earth. It complains that the KML is not valid, as does IE trying to load it
as xml. I think you need to make sure your KML is valid first. IE gives
this error:

Only one top level element is allowed in an XML document. Error processing
resource 'file:///a filename...

Only one top level element is allowed in an XML document
<ItemIcon><href>http://maps.gstatic.com/intl/en_ALL/mapfiles/kml/paddle/stop-lv.png</href></ItemIcon>...


Mike
 
Family Tree Mike said:
Since it appears you are trying to use KML, I tried to load it into Google
Earth. It complains that the KML is not valid, as does IE trying to load
it
as xml. I think you need to make sure your KML is valid first. IE gives
this error:

Only one top level element is allowed in an XML document. Error processing
resource 'file:///a filename...

Only one top level element is allowed in an XML document.
<ItemIcon><href>http://maps.gstatic.com/intl/en_ALL/mapfiles/kml/paddle/stop-lv.png</href></ItemIcon>...


Mike

Hi Mike..

Yeah. also seems to be my endresult, but the KML is a direct result to a
request made to google maps api. It returns excactly that kml..

XSD interpretes it into a schema fine, but still it makes troubles.. Oh
well. Can't wrap my head around it, so will have to put some aditional time
into research..

/Finn
 
Back
Top