S
simon.vriesema
Hi Guys,
Ive seen this posted around on the interwibble a few times, but no
post so far has helped me to understand the problem any better
i appreciate the error is because of "well-formed" xml practices
what i am trying to do however is read an "xml" file using the
following code snippet:
//---------------------------------------------------------------------------------------------------------------------------
XDocument xmldoc =
XDocument.Load(openFileDialog1.FileName);
var query = from c in
xmldoc.Descendants("gml:coordinates")
select c;
foreach (var q in query)
{...
//---------------------------------------------------------------------------------------------------------------------------
im actually reading in a standard GML document which uses the
extensible markup language.
im searching for the element of "gml:coordinates" to pull the contents
why is it throwing the following exception:
The ':' character, hexadecimal value 0x3A, cannot be included in a
name.
how can i get around this, i was going to use the LINQ capabilities in
2008 to enumerate through the xml document, i could do this a long way
around, but id prefer not to.
Ive seen this posted around on the interwibble a few times, but no
post so far has helped me to understand the problem any better
i appreciate the error is because of "well-formed" xml practices
what i am trying to do however is read an "xml" file using the
following code snippet:
//---------------------------------------------------------------------------------------------------------------------------
XDocument xmldoc =
XDocument.Load(openFileDialog1.FileName);
var query = from c in
xmldoc.Descendants("gml:coordinates")
select c;
foreach (var q in query)
{...
//---------------------------------------------------------------------------------------------------------------------------
im actually reading in a standard GML document which uses the
extensible markup language.
im searching for the element of "gml:coordinates" to pull the contents
why is it throwing the following exception:
The ':' character, hexadecimal value 0x3A, cannot be included in a
name.
how can i get around this, i was going to use the LINQ capabilities in
2008 to enumerate through the xml document, i could do this a long way
around, but id prefer not to.