Solved

ASP.NET reading ATOM

Posted on 2016-11-27
2
51 Views
Last Modified: 2016-11-28
I have a project that will utilize ATOM for a web service. I notice ATOM is simply XML with a value that uses JSON. I can read both. I was thinking of reading the XML, then when I get to the JSON, read it using the JSON reader. However, I do notice there is a Nu Get package for ASP.NET and ATOM. But I can't tell if it is something worth the effort to try and install.

Anyone with experience actually using ATOM who would recommend a library? Or just roll my own as I indicated above?

thanks!
0
Comment
Question by:Starr Duskk
2 Comments
 
LVL 33

Accepted Solution

by:
ste5an earned 500 total points
ID: 41904004
So you want to consume a news feed?

I notice ATOM is simply XML [..]
Correct.

[..] with a value that uses JSON.
I'm not aware of that.

I was thinking of reading the XML, then when I get to the JSON, read it using the JSON reader.
Can you post a sample?

Imho you don't need a package for parsing ATOM. Cause parsing XML is straight forward and ATOM is pretty simple. On the otherhand, when you need the entire information of an Atom feed in an object graph, then such a packet may make sense.
So it depends on your use-case.

Can you clarify where JSON is part of your problem?
0
 
LVL 1

Author Comment

by:Starr Duskk
ID: 41904948
It could be that this particular API happens to be sending json name value pairs as one of their strings. I hadn't worked with ATOM before, so thought maybe that was standard practice for ATOM, but it's probably just this one client. So I'll just run the json through my normal converter for that string.

And no, this has nothing to do with a news feed, although ATOM examples show that it can be used for that.
thanks!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now