List Info

Thread: Need help with asp.net code




Need help with asp.net code
user name
2006-02-28 14:59:12
Hi,

I have a web service which converts data from SQL Server to
an XML
file.
This project is in a very early stage. This is also my first
XML
related project. So please bear in mind that I am XML
challenged
person.

The output that I would like to get is something like
this...

<?xml version="1.0"
encoding="UTF-8"?>
<kml xmlns="http://earth.google.c
om/kml/2.0">
<Folder>
	<Placemark>
		<name>name1</name>
		<address>address1</address>
	</Placemark>
	<Placemark>
		<name>name2</name>
		<address>address2</address>
	</Placemark>
</Folder>
</kml>

I have a XSD file which I load into dataset before doing
dataset.getxml
But the output XML that I get is not according to the KML
format
defined in XSD file.

The output I get is like this.....

<?xml version="1.0"
encoding="utf-8" ?>
<string xmlns="http://earth.google.c
om/kml/2.0">
<NewDataSet>
	<Table>
		<name>name1</name>
		<address>address1</address>
	</Table>
	<Table>
		<name>name2</name>
		<address>address2</address>
	</Table>
</NewDataSet>
</string> 

What do I need to do to get the XML/KML in the right format?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "google earth" group.
To post to this group, send email to google-earthgooglegroups.com
To unsubscribe from this group, send email to
google-earth-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/google-earth
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )