powershell - Format SharePoint's <properties> node as list -


sharepoint 2010's listdata.srv service returns atom feed given picklist:

<?xml version="1.0" encoding="utf-8" standalone="yes"?> <entry xml:base="http://apps/requests/_vti_bin/listdata.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schem as.microsoft.com/ado/2007/08/dataservices/metadata" m:etag="w/&quot;28&quot;" xmlns="http://www.w3.org/2005/atom"> ...   <content type="application/xml">     <m:properties>       ...       <d:name>last, first</d:name>       <d:workemail>first.last@domain</d:workemail>       ...     </m:properties>   </content> </entry> 

i have quick way display of nodes in /entry/content/properties node in list.

i've tried:

ps> get-url "http://apps/requests/_vti_bin/listdata.svc/list(1234)/requestor" | format-list -property entry.content.properties 

but doesn't return value.

this works, i'd avoid interim variable assignment step:

    [xml]$xml = get-url "http://apps/requests/_vti_bin/listdata.svc/list(1234)/requestor"     $xml.entry.content.properties 

what proper syntax?

what this? ([xml](get-url "...")).entry.content.properties


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -