Convert text to HTML for use in XML

exAHSacto

New Member
Joined
Oct 4, 2011
Messages
38
Hi all,

I really hope you can help me on this one.

I need to convert plain text to HTML language, so I can use it in a XML file. In other words I need to insert a lot of "< /b</B>", etc.

I have the text in Word atm, but I can move it to Excel, if that should help.

If I save the document as a web page, then the HTML code contains a lot of noice. Here is an example:

HTML:
<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span lang=DA
style='mso-ansi-language:DA'>Det her skal virke<o:p></o:p></span></b></p>

I have tried using online converters, but that is not a viable solution.

best regards
Anders
 
Okay.

Do you know the correct encoding when I create a XML file in VBA?

this is what I got:

PHP:
Print #1, "<xml version=""1.0"" encoding=""UTF-8"">"

/Anders
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
You are missing the ? after < and before >.
 
Upvote 0
I thought the data was in a text file?

Do you mean that when you read the data from the file and then write it to the destination file these characters are lost or changed?
 
Upvote 0
No I have all the text in Excel..

I'm not sure if they are lost - Firefox just wont show them... telling me there is an error.
 
Upvote 0
Anders

Firefox?

What exactly is this XML file for?
 
Upvote 0
I create the XML file in VBA, view it using Notepad++ AND Firefox or XML Notepad.

The XML file is for XBRL...
 
Upvote 0
Have you tried viewing or loading it into whatever application that it's meant for?
 
Upvote 0

Forum statistics

Threads
1,216,085
Messages
6,128,732
Members
449,465
Latest member
TAKLAM

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top