# Reading xml file

**URL:** <https://forum.radzen.com/t/reading-xml-file/4060>\
**Category:** Radzen.Blazor Components\
**Created:** [June 27, 2020, 8:32pm UTC](https://forum.radzen.com/t/reading-xml-file/4060 "2020-06-27T20:32:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Pitwood](https://forum.radzen.com/user_avatar/forum.radzen.com/tony_pitwood/32/3628_2.png) [@Tony\_Pitwood](https://forum.radzen.com/u/Tony_Pitwood)\
**Post date:** [June 27, 2020, 8:32pm UTC](https://forum.radzen.com/t/reading-xml-file/4060/1 "2020-06-27T20:32:00Z")

</div>

Is there a facility for reading xml file?

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [June 28, 2020, 6:03am UTC](https://forum.radzen.com/t/reading-xml-file/4060/2 "2020-06-28T06:03:33Z")

</div>

There is no such built-in functionality. You can add custom method for that:

> **[Invoke method](https://www.radzen.com/documentation/blazor/invoke-method/)**
>
> Implement custom methods in C# and use them in Radzen

---

<div class="post-metadata">

**Author:** ![Tony\_Pitwood](https://forum.radzen.com/user_avatar/forum.radzen.com/tony_pitwood/32/3628_2.png) [@Tony\_Pitwood](https://forum.radzen.com/u/Tony_Pitwood)\
**Post date:** [June 29, 2020, 2:57pm UTC](https://forum.radzen.com/t/reading-xml-file/4060/3 "2020-06-29T14:57:21Z")

</div>

Hi Vladimir, I'm following the explanation in the Invoke page but when I click on the Select method, all I get is the ToString method (no matter how many times I try to Refresh)  
Where next?

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [June 29, 2020, 3:07pm UTC](https://forum.radzen.com/t/reading-xml-file/4060/4 "2020-06-29T15:07:44Z")

</div>

Can you provide more info about your custom method and where is declared?

---

<div class="post-metadata">

**Author:** ![Tony\_Pitwood](https://forum.radzen.com/user_avatar/forum.radzen.com/tony_pitwood/32/3628_2.png) [@Tony\_Pitwood](https://forum.radzen.com/u/Tony_Pitwood)\
**Post date:** [June 29, 2020, 3:19pm UTC](https://forum.radzen.com/t/reading-xml-file/4060/5 "2020-06-29T15:19:44Z")

</div>

I took on a page called Sum and dragged a button on to the form.  
Clicked on the Events tab and on the arrow to Handle the Click Event.  
Clicked the + button and selected Invoke Code - it loaded methods but does not show Sum - only ToString

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [June 29, 2020, 3:34pm UTC](https://forum.radzen.com/t/reading-xml-file/4060/6 "2020-06-29T15:34:58Z")

</div>

Will you post the code of this Sum method? It should be in the page partial class.

---

<div class="post-metadata">

**Author:** ![Tony\_Pitwood](https://forum.radzen.com/user_avatar/forum.radzen.com/tony_pitwood/32/3628_2.png) [@Tony\_Pitwood](https://forum.radzen.com/u/Tony_Pitwood)\
**Post date:** [June 29, 2020, 4:42pm UTC](https://forum.radzen.com/t/reading-xml-file/4060/7 "2020-06-29T16:42:53Z")

</div>

Thank you for asking the right question! Got me looking in the right direction

---

<div class="post-metadata">

**Author:** ![Tony\_Pitwood](https://forum.radzen.com/user_avatar/forum.radzen.com/tony_pitwood/32/3628_2.png) [@Tony\_Pitwood](https://forum.radzen.com/u/Tony_Pitwood)\
**Post date:** [June 30, 2020, 3:36pm UTC](https://forum.radzen.com/t/reading-xml-file/4060/8 "2020-06-30T15:36:01Z")

</div>

Thanks, Vladimir, I'm making some progress.  
Further down the same Invoke-method description, I connected to Northwind, followed the instructions up to Run it to try it:  
Multiple MSBuild project files found in 'C:\Radzen\server'. Specify which to use with the --project option.  
So in desperation (!) I created a new application and saved it to my C:/AAP folder - yet when I ran it, it came back with the same error???  
Why is it looking in C:/Radzen/server when I put it elsewhere?
