以下xml字串是本機iis上的檔案資訊,內容多,只截取了部分。
想決議這個,無所入手。
目前只會不含有“D:”的xml字串。
物體類創建:
VS 創建新類=》編輯=》選擇性粘貼=》將XML粘貼為類
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:">
<D:response>
<D:href>http://localhost:416/V1003/</D:href>
<D:propstat>
<D:status>HTTP/1.1 200 OK</D:status>
<D:prop>
<D:getcontenttype/>
<D:getlastmodified>Fri, 16 Apr 2021 06:04:10 GMT</D:getlastmodified>
<D:lockdiscovery/>
<D:ishidden>0</D:ishidden>
<D:supportedlock>
<D:lockentry>
<D:lockscope>
<D:exclusive/>
</D:lockscope>
<D:locktype>
<D:write/>
</D:locktype>
</D:lockentry>
<D:lockentry>
<D:lockscope>
<D:shared/>
</D:lockscope>
<D:locktype>
<D:write/>
</D:locktype>
</D:lockentry>
</D:supportedlock>
<D:getetag/>
<D:displayname>V1003</D:displayname>
<D:getcontentlanguage/>
<D:getcontentlength>0</D:getcontentlength>
<D:iscollection>1</D:iscollection>
<D:creationdate>2021-04-16T06:04:09.75Z</D:creationdate>
<D:resourcetype>
<D:collection/>
</D:resourcetype>
</D:prop>
</D:propstat>
</D:response>
<D:response>
<D:href>http://localhost:416/web.config</D:href>
<D:propstat>
<D:status>HTTP/1.1 200 OK</D:status>
<D:prop>
<D:getcontenttype>application/octet-stream</D:getcontenttype>
<D:getlastmodified>Fri, 16 Apr 2021 06:47:20 GMT</D:getlastmodified>
<D:lockdiscovery/>
<D:ishidden>0</D:ishidden>
<D:supportedlock>
<D:lockentry>
<D:lockscope>
<D:exclusive/>
</D:lockscope>
<D:locktype>
<D:write/>
</D:locktype>
</D:lockentry>
<D:lockentry>
<D:lockscope>
<D:shared/>
</D:lockscope>
<D:locktype>
<D:write/>
</D:locktype>
</D:lockentry>
</D:supportedlock>
<D:getetag>"306440598c32d71:0"</D:getetag>
<D:displayname>web.config</D:displayname>
<D:getcontentlanguage/>
<D:getcontentlength>2627</D:getcontentlength>
<D:iscollection>0</D:iscollection>
<D:creationdate>2021-04-16T06:00:22.500Z</D:creationdate>
<D:resourcetype/>
</D:prop>
</D:propstat>
</D:response>
</D:multistatus>
uj5u.com熱心網友回復:
例外:InvalidOperationException: 不應有 <D:multistatus xmlns=''>。
uj5u.com熱心網友回復:
我是使用XmlSerializer Deserialize辦法轉載請註明出處,本文鏈接:https://www.uj5u.com/net/277937.html
標籤:C#
上一篇:c語言學習
下一篇:C# 執行緒池要怎么才能執行呢?
