I want to parse json to html, with angularjs, i am converting an xml rss feed to json with npm xml2json

62 views
Skip to first unread message

Bala krishnan

unread,
Oct 30, 2015, 3:37:22 AM10/30/15
to AngularJS
I am using angularjs http to get an xml from the server, i am using node module xml2json to convert it to a json object. I get the document returned properly but it doesn't look right because it has html tags in the xml document. If anyone knows how to convert the returned json properly that would be great,

var x2js = new X2JS();
      var dom = x2js.xml_str2json(escapchr);
<my_data> 
       <p class="justify">El
             <strong>
                   <em>
                         Content Tour 2015
                   </em>
             </strong>
             <strong>
                     Distributors 
             </strong>
      </p>
</my_data>

I am still trying to figure this computer programming stuff out, i have only been coding a few months, so please excuse my bad code and kind of dumb questions, but if anyone knows how to parse the json or xml to html, i will be very grateful.

Ratanveer Singh

unread,
Oct 30, 2015, 7:02:52 AM10/30/15
to AngularJS
Dear
  
         The Json 2 html ui convert code then pass the json object. So the object is (tojson) use.
Reply all
Reply to author
Forward
0 new messages