0
我想從this XML提取場yt:username
:如何訪問此XML字段?
var xDoc = XDocument.Load(requestedURL);
var m_oListaMeteo = xDoc.Descendants(ns + "entry").Select(n =>
{
return new
{
username = n.Element(ns + "yt:username").Value
};
});
但XDocument
本身說The ':' character, hexadecimal value 0x3A, cannot be included in a name.
的字符串替換需要?或者需要我來管理YouTube的命名空間?