Solved

ASP.NET reading ATOM

Posted on 2016-11-27
2
19 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:BobCSD
2 Comments
 
LVL 32

Accepted Solution

by:
Stefan Hoffmann earned 500 total points
Comment Utility
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:BobCSD
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

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…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

7 Experts available now in Live!

Get 1:1 Help Now