Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

accept a xml in web api

$
0
0

Hi all, 

I have a xml file like belowm 

<?xml version="1.0" encoding="UTF-8"?>

<bookstore>

  <book category="cooking">

    <title lang="en">Everyday Italian</title>
    <author>Giada De Laurentiis</author>
    <year>2005</year>
    <price>30.00</price>
  </book>

</bookstore>

and i wanted to create a web api end point to accept the above xml and save it in a local drive as a xml file.   also if i can do some validation on xml beofore I accept this in web api side that would be really great, 

could some one direct me in to the right approach to do this ? 

thanks


Viewing all articles
Browse latest Browse all 4850

Trending Articles



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