Avatar of Ingo Foerster
Ingo Foerster
 asked on

Pre tag not working in code

How I can show soap XML data as text in HTML5? Pre do not work anymore. I think?
CSSHTMLXML

Avatar of undefined
Last Comment
Ingo Foerster

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
NerdsOfTech

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
NerdsOfTech

A better way than encoding is to preserve the XML formatting in a TEXTAREA INPUT

<textarea rows="20" cols="40" style="border:none;">
<?xml version="1.0" encoding="ISO-8859-1"?>
<catalog>
    <cd>
        <title>Empire Burlesque</title>
        <artist>Bob Dylan</artist>
        <country>USA</country>
        <country>Columbia</country>
        <price>10.90</price>
        <year>1985</year>
    </cd>
</catalog>
</textarea>

Open in new window


http://jsfiddle.net/y9fqf/1/
Ingo Foerster

ASKER
Great, exact what I was looking for. many thanks.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy