XDocument unable to digest url in header if encountered twice
Posted
by Paul Connolly
on Stack Overflow
See other posts from Stack Overflow
or by Paul Connolly
Published on 2010-03-23T04:28:27Z
Indexed on
2010/03/23
4:31 UTC
Read the original article
Hit count: 506
Hi there,
I am consuming an xml response from a government gateway which contains a url in its root node twice (being firstly xsi:schemaLocation="http://www.govtalk.gov.uk/CM/envelope" and also xmlns="http://www.govtalk.gov.uk/CM/envelope")
XDocument will only parse this if I pull out the second one (the xmlns one) from the node.
Is there some way I can prepare XDocument to digest this repeated URL without having to manipulate the incoming xml in any way?
Thanks
Paul
© Stack Overflow or respective owner