Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Get XML file via CSOM

$
0
0

I am new to C# and CSOM but very familiar with SharePoint and powershell. In powershell I am able to easily connect to a sharepoint document library OnPrem and read from the XML file to get values and perform actions on that data. My PowerShell:

    $form = $f.OpenBinary()
            $encode = New-Object System.Text.ASCIIEncoding
            [xml]$formXML = ($encode.GetString($form))

            $equipmentRecords = $formXML.myfields.NODE.<value>

As you can see I can easily traverse the XML hash-table and get the values of a repeating table or any other field for that matter. I need to do the same thing via C# and CSOM. I cannot easily grab and read my XML from a SharePoint library. I only care about take values from a repeating table and using them elsewhere. What is the easiest and most efficient way ofdoing this?

Any help appreciated.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>