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

8th Apr 2020, 10:06 PM
Mik
Mik - avatar
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
9th Apr 2020, 4:53 AM
visph
visph - avatar
+ 1
It work only with internet connexion or without ?
9th Apr 2020, 9:19 AM
Mik
Mik - avatar
+ 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 ^^
9th Apr 2020, 9:27 AM
visph
visph - avatar
+ 1
Big thanks bro by your link i get some good idee thks for your help
9th Apr 2020, 9:39 AM
Mik
Mik - avatar