Link to home
Start Free TrialLog in
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?
ASKER CERTIFIED SOLUTION
Avatar of NerdsOfTech
NerdsOfTech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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/
Avatar of Ingo Foerster
Ingo Foerster

ASKER

Great, exact what I was looking for. many thanks.