Umbraco C# Razor - Parsing XML example using uComponents URL picker to a list of Documents from the Media section
The code below shows you how to get a chosen list of documents using the uComponents Multi-Url picker The Code that is comment out highlights the steps to get to the end result. The Code shows how to parse raw XML in Razor. Here is what the code does: Step 1) "Get the Document List:" var urlPicker = Model.GetPropertyValue<UrlPickerState>("pickDocuments"); "pickDocuments" is the field in my Document Type it is a uComponents Multi Midia Picker Step 2) Get Type and display full string: This code is comment out - if you uncoment it, it will show you the raw XML that needs to be parsed, for example: @urlPicker displays the xml: <multi-url-picker><url-picker mode="Media"><new-window>False</new-window><node-id>1721</node-id><url>/media/53699/learning-log-v4-macroless-.xls</url><link-title /></url-picker><url-picker mode="Media"><new-window>Fal...