0
_render: function () {
      
      var info = JSON.parse('{"name":"John", "age":30, "city":"New York"}');
      console.log(info);
      this.$el.html(QWeb.render('StudentTemplate', info));
      
  },

I want to get the info values in xml and display it.

<div  class="student_information" t-att-foo="info"><t-esc="info"</div>

please suggest the correct method to access the values in xml

Anusha N
  • 23
  • 4
  • Please check visit to this solution https://stackoverflow.com/questions/17604071/parse-xml-using-javascript – Sateesh Nov 24 '21 at 05:19

0 Answers0