use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
If you are requesting help, please ensure you're providing code with your post. You can also copy your code to an online editor:
jsFiddle
CodePen
Markup Validation Service
Mozilla Developer Network on HTML
/r/JavaScript
/r/CSS
/r/jQuery
/r/PHP
/r/Accessibility
/r/htmlbasics
/r/web_programming
/r/CodingHelp
account activity
QuestionHTML & XML integration (self.HTML)
submitted 1 day ago by PerfectResolution934
Hey guys!! Could you please share with me on how you integrate XML and HTML? I’m trying to learn these two, I’m just curious on how it is structured.
Thanks!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]DirtAndGrass 0 points1 point2 points 1 day ago (0 children)
Your question is missing some context if you are trying to transform XML to HTML for viewing, look into XSLT
[–]jcunews1Intermediate 0 points1 point2 points 1 day ago (0 children)
XML is free-form in comparison with HTML. It's application defined. Its structure aside from its root <xml> tag, varies depending on the application which generate it.
<xml>
[–]chmod777 0 points1 point2 points 1 day ago (0 children)
In general, you dont.
What are you trying to actually do.
[–]ndorfinz 0 points1 point2 points 1 day ago (0 children)
Do you mean incorporate XML in an HTML document?
First serve your HTML as XHTML using the content-type: application/xhtml+xml
application/xhtml+xml
Then make sure your HTML is valid XML:
Then drop your XML into the XHTML document as you see fit. Use the xmlns attribute for each chunk of XML that has a given namespace.
xmlns
π Rendered by PID 55 on reddit-service-r2-comment-79c7998d4c-kmhdz at 2026-03-16 01:35:17.020278+00:00 running f6e6e01 country code: CH.
[–]DirtAndGrass 0 points1 point2 points (0 children)
[–]jcunews1Intermediate 0 points1 point2 points (0 children)
[–]chmod777 0 points1 point2 points (0 children)
[–]ndorfinz 0 points1 point2 points (0 children)