Solved

ASP.NET reading ATOM

Posted on 2016-11-27
2
60 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 2

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

806 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