Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8739167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:52:41+00:00 2026-06-13T10:52:41+00:00

XML’s can be transformed by a browser using XSL. This can be either done

  • 0

XML’s can be transformed by a browser using XSL.
This can be either done by referencing an xsl within the xml by
adding the following line within the xml file:

<?xml-stylesheet type='text/xsl' href='sample.xsl'?>

Opening this xml file now with internet explorer will display the correct data in the browser.

The XML itself references many other files as e.g. pictures which are located in some folder.

I want to save the data displayed (with all the referenced data) in one single
mhtml file (*.mht)

How do I proceed? And is this possible?

Note: Files are all local (not on a server) and the initial xml is a result of test data.
I just want my XML file to be displayed correctly as before started from a single file without accessing other data outside the mhtml file.

Edit upon answer 1:

I have included my xml within an iFrame of an HTML:

<body><iframe src="name.xml" width = "100%" height="1000">
</iframe></body>

This I have saved using IE into an *.mht file:

From: <Saved by Windows Internet Explorer 7>
Subject: XML-Test
Date: Wed, 22 Feb 2012 14:47:34 +0100
MIME-Version: 1.0
Content-Type: multipart/related;
    boundary="----=_NextPart_000_0000_01CCF170.E99B1DF0"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01CCF170.E99B1DF0
Content-Type: text/html;
    charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Content-Location: file://C:\Documents and Settings\STEFFAN\Desktop\Test\XML-Test.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>XML-Test</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 6.00.6000.17107" name=3DGENERATOR></HEAD>
<BODY><IFRAME=20
src=3D"http://www.m.de/name.xml"=20
width=3D"100%" height=3D1000>
</IFRAME></BODY></HTML>

------=_NextPart_000_0000_01CCF170.E99B1DF0
Content-Type: text/xml;
    charset="unicode"
Content-Transfer-Encoding: base64
Content-Location: http://www.m.de/name.xml

//48ACEARABPAEMAVABZAFAARQAgAEgAVABNAEwAIABQAFUAQgBMAEkAQwAgACIALQAvAC8AVwAz
AEMALwAvAEQAVABEACAASABUAE0ATAAgADQALgAwACAAVAByAGEAbgBzAGkAdABpAG8AbgBhAGwA...

Since I use local files originally instead of “http://www.m.de/name.xml&#8221; “file://C:\Documents and Settings\STEFFAN\Desktop\Test\SUPL_TCLog.xml” was outputted by IE.

But this local reference does not seem to work for mhtml, which sucks and therefore, I used a random substitute (http://www.m.de/name.xml) for it. (this works fine for image files). Changing it accordingly opening the mht file will start a download of the xml file. But this is not wanted. I want it to be displayed.

What is missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:52:43+00:00Added an answer on June 13, 2026 at 10:52 am

    I did try some attempts, but was not successful.
    Also Francis Avila’s proposal I could not solve successful.

    Especially code referenced by javascript also contained other references. I did not know how to resolve these and put them into mhtml.

    Maybe using Altova StyleVision would be a solution.

    Since I did not longer try. I close this thread.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Reading XML from a file into a variable can be done like this: [xml]$x
XML/XSL newbie here, so please forgive my ignorance. This is the xml input given
XML Data: <configs> <config> <name>XP</name> <browser>IE</browser> <browser>FF</browser> <browser>Chrome</browser> </config> </configs> I'm new to Ruby,
xml.etree.ElementTree.parse is choking on my xhtml file. I saw somewhere that lxml can handle
XML documents can be localized by referring to an external DTD document that contains
Xml response is like , but in one tag , the text is this:
XML::Simple documentation says to initiate the data structure with an XML file, using XMLin('[FILENAME]')
xml: <root> <element>value (something)</element> </root> I need to unmarshall this xml to two different
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
XML confuses me sometimes, but I'm trying to get this figured out. What the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.