0
Help me friends want to know if is possible to use xml tag in html and how to do it ?
Using of xml tags to html file
5 Answers
+ 1
<xml id="msg" src="example1.xml"></xml>
or...
<html>
<xml id="msg">Â
<message>Â
              <to> Visitors </to>Â
              <from> Author </from>Â
              <Subject> XML Code Islands </Subject>Â
              <body> In this example, XML code is embedded inside HTML code </body>Â
</message>Â
</xml>Â
</html>
from: https://www.expertrating.com/courseware/XMLCourse/XML-Embedding-HTML-8.asp
But that would not really works at sololearn code playground, as the source code is prepared for a classic html header-body format, and those are injected systematically if not present at first ^^
Almost, this seems to be an obsolete feature from MS internet explorer, not official and no longer supported:
"This feature is not based on multi-vendor Web standards and is not supported in Firefox (or other non-IE browsers). XML data islands are no longer supported from Internet Explorer 10 onward"
from: https://developer.mozilla.org/en-US/docs/Archive/Misc_top_level/Using_XML_Data_Islands_in_Mozilla
+ 1
It work only with internet connexion or without ?
+ 1
The links provided works with internet connexion, yes :P
The <xml> tag I guess works as any html tag / element: depends on the location of both the page source and ressources potentially linked inside...
If your file(s) are locals, the internet connexion isn't required ^^
+ 1
Big thanks bro by your link i get some good idee thks for your help