How to find "S:security_descriptor" node in XMLDOM document
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
How to find "S:security_descriptor" node in XMLDOM document

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Slawek
Guest





Posted: Mon Sep 19, 2005 10:48 pm    Post subject: How to find "S:security_descriptor" node in XMLDOM document Reply with quote

My XMLDOM document is looking as this:

<?xml version=\"1.0\"?><a:multistatus
xmlns:b=\"urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/\" xmlns:c=\"xml:\"
xmlns:d=\"http://schemas.microsoft.com/exchange/security/\"
xmlns:a=\"DAV:\"><a:response><a:href>http://dc1/Public/folderITA/</a:href><a:propstat><a:status>HTTP/1.1
200 OK</a:status><a:prop><d:descriptor>
<S:security_descriptor xmlns:S=\"http://schemas.microsoft.com/security/\"
xmlns:D=\"urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/\"
D:dt=\"microsoft.security_descriptor\" S:from_mapi_tlh=\"1\">
<S:revision>1</S:revision><S:owner
S:defaulted=\"0\"><S:sid><S:string_sid>S-1-5-32-544</S:string_sid><S:type>alias</S:type><S:nt4_compatible_name>BUILTIN\\Administrators</S:nt4_compatible_name><S:ad_object_guid>{588a6112-52b3-4f4f-81f7-3d5c4b1a6bde}</S:ad_object_guid></S:sid></S:owner><S:primary_group
S:defaulted=\"0\"><S:sid><S:string_sid>S-1-5-21-1128183542-593576799-3961996724-513</S:string_sid><S:type>group</S:type><S:nt4_compatible_name>LU-TEST\\Domain
Users</S:nt4_compatible_name><S:ad_object_guid>{3f93f2cf-1f3f-4d43-a15b-38228ae56995}</S:ad_object_guid></S:sid></S:primary_group><S:dacl
S:defaulted=\"0\" S:protected=\"0\"
S:autoinherited=\"1\"><S:revision>2</S:revision><S:effective_aces><S:access_allowed_ace
S:inherited=\"0\"><S:access_mask>1fc9ff</S:access_mask><S:sid><S:string_sid>S-1-5-21-1128183542-593576799-3961996724-500</S:string_sid><S:type>user</S:type><S:nt4_compatible_name>LU-TEST\\Administrator</S:nt4_compatible_name><S:ad_object_guid>{16680c4b-b404-4e1a-b204-0ce92f569441}</S:ad_object_guid><S:display_name>Administrator</S:display_name></S:sid></S:access_allowed_ace><S:access_allowed_ace
S:inherited=\"1\"><S:access_mask>2</S:access_mask><S:sid><S:string_sid>S-1-5-7</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>NT
AUTHORITY\\ANONYMOUS
LOGON</S:nt4_compatible_name><S:ad_object_guid>{f45de208-dd01-447f-8119-9503b798c324}</S:ad_object_guid></S:sid></S:access_allowed_ace><S:access_denied_ace
S:inherited=\"1\"><S:access_mask>1fc9bd</S:access_mask><S:sid><S:string_sid>S-1-5-7</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>NT
AUTHORITY\\ANONYMOUS
LOGON</S:nt4_compatible_name><S:ad_object_guid>{f45de208-dd01-447f-8119-9503b798c324}</S:ad_object_guid></S:sid></S:access_denied_ace><S:access_allowed_ace
S:inherited=\"1\"><S:access_mask>1208ab</S:access_mask><S:sid><S:string_sid>S-1-1-0</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>\\Everyone</S:nt4_compatible_name><S:ad_object_guid>{fa581198-c1cb-4e61-8b4c-2523697154ec}</S:ad_object_guid></S:sid></S:access_allowed_ace></S:effective_aces><S:subcontainer_inheritable_aces><S:access_allowed_ace
S:inherited=\"0\"
S:no_propagate_inherit=\"0\"><S:access_mask>1fc9ff</S:access_mask><S:sid><S:string_sid>S-1-5-21-1128183542-593576799-3961996724-500</S:string_sid><S:type>user</S:type><S:nt4_compatible_name>LU-TEST\\Administrator</S:nt4_compatible_name><S:ad_object_guid>{16680c4b-b404-4e1a-b204-0ce92f569441}</S:ad_object_guid><S:display_name>Administrator</S:display_name></S:sid></S:access_allowed_ace><S:access_allowed_ace
S:inherited=\"1\"
S:no_propagate_inherit=\"0\"><S:access_mask>2</S:access_mask><S:sid><S:string_sid>S-1-5-7</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>NT
AUTHORITY\\ANONYMOUS
LOGON</S:nt4_compatible_name><S:ad_object_guid>{f45de208-dd01-447f-8119-9503b798c324}</S:ad_object_guid></S:sid></S:access_allowed_ace><S:access_denied_ace
S:inherited=\"1\"
S:no_propagate_inherit=\"0\"><S:access_mask>1fc9bd</S:access_mask><S:sid><S:string_sid>S-1-5-7</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>NT
AUTHORITY\\ANONYMOUS
LOGON</S:nt4_compatible_name><S:ad_object_guid>{f45de208-dd01-447f-8119-9503b798c324}</S:ad_object_guid></S:sid></S:access_denied_ace><S:access_allowed_ace
S:inherited=\"1\"
S:no_propagate_inherit=\"0\"><S:access_mask>1208ab</S:access_mask><S:sid><S:string_sid>S-1-1-0</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>\\Everyone</S:nt4_compatible_name><S:ad_object_guid>{fa581198-c1cb-4e61-8b4c-2523697154ec}</S:ad_object_guid></S:sid></S:access_allowed_ace></S:subcontainer_inheritable_aces><S:subitem_inheritable_aces><S:access_allowed_ace
S:inherited=\"0\"
S:no_propagate_inherit=\"0\"><S:access_mask>1f0fbf</S:access_mask><S:sid><S:string_sid>S-1-5-21-1128183542-593576799-3961996724-500</S:string_sid><S:type>user</S:type><S:nt4_compatible_name>LU-TEST\\Administrator</S:nt4_compatible_name><S:ad_object_guid>{16680c4b-b404-4e1a-b204-0ce92f569441}</S:ad_object_guid><S:display_name>Administrator</S:display_name></S:sid></S:access_allowed_ace><S:access_denied_ace
S:inherited=\"1\"
S:no_propagate_inherit=\"0\"><S:access_mask>1f0fbf</S:access_mask><S:sid><S:string_sid>S-1-5-7</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>NT
AUTHORITY\\ANONYMOUS
LOGON</S:nt4_compatible_name><S:ad_object_guid>{f45de208-dd01-447f-8119-9503b798c324}</S:ad_object_guid></S:sid></S:access_denied_ace><S:access_allowed_ace
S:inherited=\"1\"
S:no_propagate_inherit=\"0\"><S:access_mask>120ea9</S:access_mask><S:sid><S:string_sid>S-1-1-0</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>\\Everyone</S:nt4_compatible_name><S:ad_object_guid>{fa581198-c1cb-4e61-8b4c-2523697154ec}</S:ad_object_guid></S:sid></S:access_allowed_ace></S:subitem_inheritable_aces>
</S:dacl>
</S:security_descriptor>
</d:descriptor></a:prop></a:propstat></a:response></a:multistatus>"



I would like to find "S:security_descriptor" node in the XMLDOM document.
I was write that code in C# but it doesn't work.


System.Xml.XmlNamespaceManager xmlnsmXMLDOM = new
System.Xml.XmlNamespaceManager(XMLDOM.NameTable);

xmlnsmXMLDOM.AddNamespace("S",
http://schemas.microsoft.com/exchange/security/);

System.Xml.XmlNode node2 =
XMLDOM.DocumentElement.SelectSingleNode("//S:security_descriptor",
xmlnsmXMLDOM);



Thank you for the help!
Slawek

Back to top
Henning Krause [MVP - Exc
Guest





Posted: Tue Sep 20, 2005 8:58 am    Post subject: Re: How to find "S:security_descriptor" node in XMLDOM docum Reply with quote

Hello,

you have added the wrong namespace to your namespace manager.
Instead of
http://schemas.microsoft.com/exchange/security/
use
http://schemas.microsoft.com/security/

Greetings,
Henning Krause
MVP - Exchange
http://www.infinitec.de


"Slawek" <ads@lumena.com> wrote in message
news:OxgSmJUvFHA.3860@TK2MSFTNGP09.phx.gbl...
Quote:
My XMLDOM document is looking as this:

?xml version=\"1.0\"?><a:multistatus
xmlns:b=\"urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/\"
xmlns:c=\"xml:\"
xmlns:d=\"http://schemas.microsoft.com/exchange/security/\"
xmlns:a=\"DAV:\"><a:response><a:href>http://dc1/Public/folderITA/</a:href><a:propstat><a:status>HTTP/1.1
200 OK</a:status><a:prop><d:descriptor
S:security_descriptor xmlns:S=\"http://schemas.microsoft.com/security/\"
xmlns:D=\"urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/\"
D:dt=\"microsoft.security_descriptor\" S:from_mapi_tlh=\"1\"
S:revision>1</S:revision><S:owner
S:defaulted=\"0\"><S:sid><S:string_sid>S-1-5-32-544</S:string_sid><S:type>alias</S:type><S:nt4_compatible_name>BUILTIN\\Administrators</S:nt4_compatible_name><S:ad_object_guid>{588a6112-52b3-4f4f-81f7-3d5c4b1a6bde}</S:ad_object_guid></S:sid></S:owner><S:primary_group
S:defaulted=\"0\"><S:sid><S:string_sid>S-1-5-21-1128183542-593576799-3961996724-513</S:string_sid><S:type>group</S:type><S:nt4_compatible_name>LU-TEST\\Domain
Users</S:nt4_compatible_name><S:ad_object_guid>{3f93f2cf-1f3f-4d43-a15b-38228ae56995}</S:ad_object_guid></S:sid></S:primary_group><S:dacl
S:defaulted=\"0\" S:protected=\"0\"
S:autoinherited=\"1\"><S:revision>2</S:revision><S:effective_aces><S:access_allowed_ace
S:inherited=\"0\"><S:access_mask>1fc9ff</S:access_mask><S:sid><S:string_sid>S-1-5-21-1128183542-593576799-3961996724-500</S:string_sid><S:type>user</S:type><S:nt4_compatible_name>LU-TEST\\Administrator</S:nt4_compatible_name><S:ad_object_guid>{16680c4b-b404-4e1a-b204-0ce92f569441}</S:ad_object_guid><S:display_name>Administrator</S:display_name></S:sid></S:access_allowed_ace><S:access_allowed_ace
S:inherited=\"1\"><S:access_mask>2</S:access_mask><S:sid><S:string_sid>S-1-5-7</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>NT
AUTHORITY\\ANONYMOUS
LOGON</S:nt4_compatible_name><S:ad_object_guid>{f45de208-dd01-447f-8119-9503b798c324}</S:ad_object_guid></S:sid></S:access_allowed_ace><S:access_denied_ace
S:inherited=\"1\"><S:access_mask>1fc9bd</S:access_mask><S:sid><S:string_sid>S-1-5-7</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>NT
AUTHORITY\\ANONYMOUS
LOGON</S:nt4_compatible_name><S:ad_object_guid>{f45de208-dd01-447f-8119-9503b798c324}</S:ad_object_guid></S:sid></S:access_denied_ace><S:access_allowed_ace
S:inherited=\"1\"><S:access_mask>1208ab</S:access_mask><S:sid><S:string_sid>S-1-1-0</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>\\Everyone</S:nt4_compatible_name><S:ad_object_guid>{fa581198-c1cb-4e61-8b4c-2523697154ec}</S:ad_object_guid></S:sid></S:access_allowed_ace></S:effective_aces><S:subcontainer_inheritable_aces><S:access_allowed_ace
S:inherited=\"0\"
S:no_propagate_inherit=\"0\"><S:access_mask>1fc9ff</S:access_mask><S:sid><S:string_sid>S-1-5-21-1128183542-593576799-3961996724-500</S:string_sid><S:type>user</S:type><S:nt4_compatible_name>LU-TEST\\Administrator</S:nt4_compatible_name><S:ad_object_guid>{16680c4b-b404-4e1a-b204-0ce92f569441}</S:ad_object_guid><S:display_name>Administrator</S:display_name></S:sid></S:access_allowed_ace><S:access_allowed_ace
S:inherited=\"1\"
S:no_propagate_inherit=\"0\"><S:access_mask>2</S:access_mask><S:sid><S:string_sid>S-1-5-7</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>NT
AUTHORITY\\ANONYMOUS
LOGON</S:nt4_compatible_name><S:ad_object_guid>{f45de208-dd01-447f-8119-9503b798c324}</S:ad_object_guid></S:sid></S:access_allowed_ace><S:access_denied_ace
S:inherited=\"1\"
S:no_propagate_inherit=\"0\"><S:access_mask>1fc9bd</S:access_mask><S:sid><S:string_sid>S-1-5-7</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>NT
AUTHORITY\\ANONYMOUS
LOGON</S:nt4_compatible_name><S:ad_object_guid>{f45de208-dd01-447f-8119-9503b798c324}</S:ad_object_guid></S:sid></S:access_denied_ace><S:access_allowed_ace
S:inherited=\"1\"
S:no_propagate_inherit=\"0\"><S:access_mask>1208ab</S:access_mask><S:sid><S:string_sid>S-1-1-0</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>\\Everyone</S:nt4_compatible_name><S:ad_object_guid>{fa581198-c1cb-4e61-8b4c-2523697154ec}</S:ad_object_guid></S:sid></S:access_allowed_ace></S:subcontainer_inheritable_aces><S:subitem_inheritable_aces><S:access_allowed_ace
S:inherited=\"0\"
S:no_propagate_inherit=\"0\"><S:access_mask>1f0fbf</S:access_mask><S:sid><S:string_sid>S-1-5-21-1128183542-593576799-3961996724-500</S:string_sid><S:type>user</S:type><S:nt4_compatible_name>LU-TEST\\Administrator</S:nt4_compatible_name><S:ad_object_guid>{16680c4b-b404-4e1a-b204-0ce92f569441}</S:ad_object_guid><S:display_name>Administrator</S:display_name></S:sid></S:access_allowed_ace><S:access_denied_ace
S:inherited=\"1\"
S:no_propagate_inherit=\"0\"><S:access_mask>1f0fbf</S:access_mask><S:sid><S:string_sid>S-1-5-7</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>NT
AUTHORITY\\ANONYMOUS
LOGON</S:nt4_compatible_name><S:ad_object_guid>{f45de208-dd01-447f-8119-9503b798c324}</S:ad_object_guid></S:sid></S:access_denied_ace><S:access_allowed_ace
S:inherited=\"1\"
S:no_propagate_inherit=\"0\"><S:access_mask>120ea9</S:access_mask><S:sid><S:string_sid>S-1-1-0</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>\\Everyone</S:nt4_compatible_name><S:ad_object_guid>{fa581198-c1cb-4e61-8b4c-2523697154ec}</S:ad_object_guid></S:sid></S:access_allowed_ace></S:subitem_inheritable_aces
/S:dacl
/S:security_descriptor
/d:descriptor></a:prop></a:propstat></a:response></a:multistatus>"



I would like to find "S:security_descriptor" node in the XMLDOM document.
I was write that code in C# but it doesn't work.


System.Xml.XmlNamespaceManager xmlnsmXMLDOM = new
System.Xml.XmlNamespaceManager(XMLDOM.NameTable);

xmlnsmXMLDOM.AddNamespace("S",
http://schemas.microsoft.com/exchange/security/);

System.Xml.XmlNode node2 =
XMLDOM.DocumentElement.SelectSingleNode("//S:security_descriptor",
xmlnsmXMLDOM);



Thank you for the help!
Slawek

Back to top
Slawek
Guest





Posted: Wed Sep 21, 2005 4:59 pm    Post subject: Re: How to find "S:security_descriptor" node in XMLDOM docum Reply with quote

Thank you.
You are right.
It was problem with wrong namespace.

best regards
Slawek

"Henning Krause [MVP - Exchange]" <newsgroups.remove@this.infinitec.de>
wrote in message news:uDMnpabvFHA.720@TK2MSFTNGP15.phx.gbl...
Quote:
Hello,

you have added the wrong namespace to your namespace manager.
Instead of
http://schemas.microsoft.com/exchange/security/
use
http://schemas.microsoft.com/security/

Greetings,
Henning Krause
MVP - Exchange
http://www.infinitec.de


"Slawek" <ads@lumena.com> wrote in message
news:OxgSmJUvFHA.3860@TK2MSFTNGP09.phx.gbl...
My XMLDOM document is looking as this:

?xml version=\"1.0\"?><a:multistatus
xmlns:b=\"urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/\"
xmlns:c=\"xml:\"
xmlns:d=\"http://schemas.microsoft.com/exchange/security/\"
xmlns:a=\"DAV:\"><a:response><a:href>http://dc1/Public/folderITA/</a:href><a:propstat><a:status>HTTP/1.1
200 OK</a:status><a:prop><d:descriptor
S:security_descriptor xmlns:S=\"http://schemas.microsoft.com/security/\"
xmlns:D=\"urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/\"
D:dt=\"microsoft.security_descriptor\" S:from_mapi_tlh=\"1\"
S:revision>1</S:revision><S:owner
S:defaulted=\"0\"><S:sid><S:string_sid>S-1-5-32-544</S:string_sid><S:type>alias</S:type><S:nt4_compatible_name>BUILTIN\\Administrators</S:nt4_compatible_name><S:ad_object_guid>{588a6112-52b3-4f4f-81f7-3d5c4b1a6bde}</S:ad_object_guid></S:sid></S:owner><S:primary_group
S:defaulted=\"0\"><S:sid><S:string_sid>S-1-5-21-1128183542-593576799-3961996724-513</S:string_sid><S:type>group</S:type><S:nt4_compatible_name>LU-TEST\\Domain
Users</S:nt4_compatible_name><S:ad_object_guid>{3f93f2cf-1f3f-4d43-a15b-38228ae56995}</S:ad_object_guid></S:sid></S:primary_group><S:dacl
S:defaulted=\"0\" S:protected=\"0\"
S:autoinherited=\"1\"><S:revision>2</S:revision><S:effective_aces><S:access_allowed_ace
S:inherited=\"0\"><S:access_mask>1fc9ff</S:access_mask><S:sid><S:string_sid>S-1-5-21-1128183542-593576799-3961996724-500</S:string_sid><S:type>user</S:type><S:nt4_compatible_name>LU-TEST\\Administrator</S:nt4_compatible_name><S:ad_object_guid>{16680c4b-b404-4e1a-b204-0ce92f569441}</S:ad_object_guid><S:display_name>Administrator</S:display_name></S:sid></S:access_allowed_ace><S:access_allowed_ace
S:inherited=\"1\"><S:access_mask>2</S:access_mask><S:sid><S:string_sid>S-1-5-7</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>NT
AUTHORITY\\ANONYMOUS
LOGON</S:nt4_compatible_name><S:ad_object_guid>{f45de208-dd01-447f-8119-9503b798c324}</S:ad_object_guid></S:sid></S:access_allowed_ace><S:access_denied_ace
S:inherited=\"1\"><S:access_mask>1fc9bd</S:access_mask><S:sid><S:string_sid>S-1-5-7</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>NT
AUTHORITY\\ANONYMOUS
LOGON</S:nt4_compatible_name><S:ad_object_guid>{f45de208-dd01-447f-8119-9503b798c324}</S:ad_object_guid></S:sid></S:access_denied_ace><S:access_allowed_ace
S:inherited=\"1\"><S:access_mask>1208ab</S:access_mask><S:sid><S:string_sid>S-1-1-0</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>\\Everyone</S:nt4_compatible_name><S:ad_object_guid>{fa581198-c1cb-4e61-8b4c-2523697154ec}</S:ad_object_guid></S:sid></S:access_allowed_ace></S:effective_aces><S:subcontainer_inheritable_aces><S:access_allowed_ace
S:inherited=\"0\"
S:no_propagate_inherit=\"0\"><S:access_mask>1fc9ff</S:access_mask><S:sid><S:string_sid>S-1-5-21-1128183542-593576799-3961996724-500</S:string_sid><S:type>user</S:type><S:nt4_compatible_name>LU-TEST\\Administrator</S:nt4_compatible_name><S:ad_object_guid>{16680c4b-b404-4e1a-b204-0ce92f569441}</S:ad_object_guid><S:display_name>Administrator</S:display_name></S:sid></S:access_allowed_ace><S:access_allowed_ace
S:inherited=\"1\"
S:no_propagate_inherit=\"0\"><S:access_mask>2</S:access_mask><S:sid><S:string_sid>S-1-5-7</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>NT
AUTHORITY\\ANONYMOUS
LOGON</S:nt4_compatible_name><S:ad_object_guid>{f45de208-dd01-447f-8119-9503b798c324}</S:ad_object_guid></S:sid></S:access_allowed_ace><S:access_denied_ace
S:inherited=\"1\"
S:no_propagate_inherit=\"0\"><S:access_mask>1fc9bd</S:access_mask><S:sid><S:string_sid>S-1-5-7</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>NT
AUTHORITY\\ANONYMOUS
LOGON</S:nt4_compatible_name><S:ad_object_guid>{f45de208-dd01-447f-8119-9503b798c324}</S:ad_object_guid></S:sid></S:access_denied_ace><S:access_allowed_ace
S:inherited=\"1\"
S:no_propagate_inherit=\"0\"><S:access_mask>1208ab</S:access_mask><S:sid><S:string_sid>S-1-1-0</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>\\Everyone</S:nt4_compatible_name><S:ad_object_guid>{fa581198-c1cb-4e61-8b4c-2523697154ec}</S:ad_object_guid></S:sid></S:access_allowed_ace></S:subcontainer_inheritable_aces><S:subitem_inheritable_aces><S:access_allowed_ace
S:inherited=\"0\"
S:no_propagate_inherit=\"0\"><S:access_mask>1f0fbf</S:access_mask><S:sid><S:string_sid>S-1-5-21-1128183542-593576799-3961996724-500</S:string_sid><S:type>user</S:type><S:nt4_compatible_name>LU-TEST\\Administrator</S:nt4_compatible_name><S:ad_object_guid>{16680c4b-b404-4e1a-b204-0ce92f569441}</S:ad_object_guid><S:display_name>Administrator</S:display_name></S:sid></S:access_allowed_ace><S:access_denied_ace
S:inherited=\"1\"
S:no_propagate_inherit=\"0\"><S:access_mask>1f0fbf</S:access_mask><S:sid><S:string_sid>S-1-5-7</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>NT
AUTHORITY\\ANONYMOUS
LOGON</S:nt4_compatible_name><S:ad_object_guid>{f45de208-dd01-447f-8119-9503b798c324}</S:ad_object_guid></S:sid></S:access_denied_ace><S:access_allowed_ace
S:inherited=\"1\"
S:no_propagate_inherit=\"0\"><S:access_mask>120ea9</S:access_mask><S:sid><S:string_sid>S-1-1-0</S:string_sid><S:type>well_known_group</S:type><S:nt4_compatible_name>\\Everyone</S:nt4_compatible_name><S:ad_object_guid>{fa581198-c1cb-4e61-8b4c-2523697154ec}</S:ad_object_guid></S:sid></S:access_allowed_ace></S:subitem_inheritable_aces
/S:dacl
/S:security_descriptor
/d:descriptor></a:prop></a:propstat></a:response></a:multistatus>"



I would like to find "S:security_descriptor" node in the XMLDOM document.
I was write that code in C# but it doesn't work.


System.Xml.XmlNamespaceManager xmlnsmXMLDOM = new
System.Xml.XmlNamespaceManager(XMLDOM.NameTable);

xmlnsmXMLDOM.AddNamespace("S",
http://schemas.microsoft.com/exchange/security/);

System.Xml.XmlNode node2 =
XMLDOM.DocumentElement.SelectSingleNode("//S:security_descriptor",
xmlnsmXMLDOM);



Thank you for the help!
Slawek





Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB