这是我为检索组成员而生成的 xml。我需要从此 xml 中获取值 tech\abc1234。
<tcm:Trustee xlink:href="tcm:0-61-65552" xlink:type="simple" xlink:title="tech\abc1234" Type="65552" Icon="T65552L0P0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:tcm="http://www.tridion.com/ContentManager/5.0"></tcm:Trustee>
但是当我尝试获取属性值时:
XElement userList = csClient.GetListXml(grpId, members);
foreach (var eachuser in userList.Elements())
{
logdetails(eachuser.Attribute("xlink:title").Value.ToString());
}
我收到以下错误:
error The ':' character, hexadecimal value 0x3A, cannot be included in a name.