public static class Program
public static void Main(string[] args)
@"<Request xmlns=""urn:oasis:names:tc:xacml:2.0:context:schema:os"">
<Subject SubjectCategory=""urn:oasis:names:tc:xacml:1.0:subject-category:access-subject"">
<Attribute AttributeId=""urn:oasis:names:tc:xacml:1.0:subject:role-id"" DataType=""http://www.w3.org/2001/XMLSchema#string"" Issuer=""requestor"">
<AttributeValue>CISCO:UC:UCMPolicy</AttributeValue>
<Attribute AttributeId=""urn:Cisco:uc:1.0:callingnumber"" DataType=""http://www.w3.org/2001/XMLSchema#string"">
<AttributeValue>10000</AttributeValue>
<Attribute AttributeId=""urn:Cisco:uc:1.0:callednumber"" DataType=""http://www.w3.org/2001/XMLSchema#string"">
<AttributeValue>94146172510</AttributeValue>
<Attribute AttributeId=""urn:Cisco:uc:1.0:transformedcgpn"" DataType=""http://www.w3.org/2001/XMLSchema#string"">
<AttributeValue>10000</AttributeValue>
<Attribute AttributeId=""urn:Cisco:uc:1.0:transformedcdpn"" DataType=""http://www.w3.org/2001/XMLSchema#string"">
<AttributeValue>888884146172510</AttributeValue>
<Attribute AttributeId=""urn:oasis:names:tc:xacml:1.0:resource:resource-id"" DataType=""http://www.w3.org/2001/XMLSchema#anyURI"">
<AttributeValue>CISCO:UC:VoiceOrVideoCall</AttributeValue>
<Attribute AttributeId=""urn:oasis:names:tc:xacml:1.0:action:action-id"" DataType=""http://www.w3.org/2001/XMLSchema#anyURI"">
<AttributeValue>any</AttributeValue>
<Attribute AttributeId=""urn:Cisco:uc:1.0:triggerpointtype"" DataType=""http://www.w3.org/2001/XMLSchema#string"">
<AttributeValue>translationpattern</AttributeValue>
var doc = XDocument.Parse(xml);
XNamespace ns = "urn:oasis:names:tc:xacml:2.0:context:schema:os";
var id = "urn:oasis:names:tc:xacml:1.0:action:action-id";
var value = (string)doc.Descendants(ns + "Attribute")
.Where(x => (string)x.Attribute("AttributeId") == id)
.Elements(ns + "AttributeValue")
Console.WriteLine(value);