from kml file reading and writing the data

Feb 27 2010 4:33 AM
Hi

In my application i want to write some geographical data and some other details in an kml file, and read those details from an kml file and use it in our application.

for this purpose i want to read and write kml file in our application and i want to do manipulation on the kml file and its data.

in mainpage.xaml.cs we write the fo;;owing code

xdocument xdoc=new xdocument(Ptest.kml);

in the above line it showing an error messgae i.e "the specified file does not appear in the xap package"

this is the error we are getting, please if any body knows the reason please reply me other wise if you know any alternate way to read an kml file, please post .

Thanks& Regards
v.s.r.k.raju