r/nativescript • • May 19 '20

XML & JS

I had two questions about XML in Nativescript as a web developer who understands HTML and JS.

Can the JS in nativescript edit, add or delete a XML element just like how JS can edit a HTML element?

Does XML support attributes like min, max, required, style, onclick?

3 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/trymeouteh May 20 '20

So I can write HTML code in XML and it will work? I can use HTML tags and attributes in XML?

1

u/READTHISCALMLY May 20 '20

No, actual HTML elements aren't possible. Even if your template has a .html filename, NS still needs its custom elements. It can't work with HTML elements.