Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ASP.NET reading ATOM

Posted on 2016-11-27
2
Medium Priority
?
118 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Accepted Solution

by:
ste5an earned 2000 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

688 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