How I can print element in a xml String

Suyash Joshi
Tera Contributor

Hello Everyone,

I am stuck in a problem in which I want to print only a single element in code.

The code as follow:-

var xmlString = "<test>" +
" <one>" +
" <two att=\"xxx\">abcd1234</two>" +
" <three boo=\"yah\" att=\"yyy\">1234abcd</three>" +
" <two>another</two>" +
" </one>" +
" <number>1234</number>" +
"</test>";

 

Any help will be greatful

Regards,

Suyash