The plugin type xhtml-macro was introduced with Confluence 4 as replacement for the old macro type. I can not tell you the exact difference between them, but if I remember correctly the most important difference is the support for the new xhtml macro code instead of wiki markup and the support for confluence mobile.
If you want to develop a plugin for Confluence 4 or above i would suggest, only to use xhtml-macro. Only if you want to support older Confluence versions the old macro type would be appropiate
You're right. I found also this explanation when I searched tutorials (about macro). And I found a tutorial for confluence 4 with <macro> and another with <xhtml-macro>. So I made the same observation but I was not sure. So now, you confirm my opinion, thank you so much !
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs