EDN Admin
Well-known member
So I have some sample xml as such:
<<span style="color:#990000 Response <span style="color:#990000 xlink:baseUrl=http://www.blah.com
<span style="color:#990000 baseUrl=http://www.blah.com <span style="color:#990000
version="<span style="color:black; font-weight:bold 1.0 <Videos> <Video> <Title>My Video</Title> </Video> </Videos> </Response>
When I try and parse it the parser below, the parse fails but if I remove the xlink:baseUrl attribute portion the parse succeeds. Can someone explain why this happens?
XDocument doc = XDocument.Parse.(xmlString);
var listItems = from item in doc.Descendants("Title")
select new XMLItem()
{
title = item.Value.ToString()
}
View the full article
<<span style="color:#990000 Response <span style="color:#990000 xlink:baseUrl=http://www.blah.com
<span style="color:#990000 baseUrl=http://www.blah.com <span style="color:#990000
version="<span style="color:black; font-weight:bold 1.0 <Videos> <Video> <Title>My Video</Title> </Video> </Videos> </Response>
When I try and parse it the parser below, the parse fails but if I remove the xlink:baseUrl attribute portion the parse succeeds. Can someone explain why this happens?
XDocument doc = XDocument.Parse.(xmlString);
var listItems = from item in doc.Descendants("Title")
select new XMLItem()
{
title = item.Value.ToString()
}
View the full article