Avatar of ALNMOO
ALNMOOFlag for Saudi Arabia

asked on 

Retrieve HTML from XML doc

I hope this easy. I wrote a php code that save HTML tags inside XML file as below:

<DOC>
  <TITLE ID="96001">test</TITLE>
  <PAR ID="96002”>
<!—HTML tags here-- > 
</PAR>
  </DOC>

But the file appear like this

<DOC>
  <TITLE ID="96001">test</TITLE>
  <PAR ID="96002">&lt;ul&gt;&lt;BR&gt;&nbsp; &lt;li&gt;&lt;strong&gt;123456789&lt;/strong&gt;&lt;/li&gt;&lt;BR&gt;&nbsp; &lt;li&gt;&lt;strong&gt;987654321 &lt;/strong&gt;&lt;/li&gt;&lt;BR&gt;&nbsp; &lt;li&gt; &lt;/li&gt;&lt;BR&gt;&lt;/ul&gt;</PAR>
  </DOC>
 and when I print the content of the file it appear like this

<ul><BR>  <li><strong>123456789</strong></li><BR>  <li><strong>987654321 </strong></li><BR>  <li> </li><BR></ul>

which I want but not as a pure tags but I want it formatted like this

·      123456789
·      987654321

Can any one help me.
Thanks in advance  


Web Languages and Standards

Avatar of undefined
Last Comment
Timbo87
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

You need to print it from a browser so that the html gets rendered.

Try opening it with Internet Explorer and then printing it.

Cd&

Avatar of ALNMOO
ALNMOO
Flag of Saudi Arabia image

ASKER

when I print it this what i get in the browser

<ul><BR>  <li><strong>123456789</strong></li><BR>  <li><strong>987654321 </strong></li><BR>  <li> </li><BR></ul>

but I want this

·     123456789
·     987654321

Thank you for your response.
ASKER CERTIFIED SOLUTION
Avatar of Timbo87
Timbo87

Blurred text
THIS SOLUTION IS 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
Web Languages and Standards
Web Languages and Standards

Web development can range from developing the simplest static single page of plain text to the most complex web-based internet applications, electronic businesses, and social network services using a wide variety of languages and standards, including the familiar HTML, JavaScript and jQuery, ASP and ASP.NET, PHP, ColdFusion, CSS, PHP, Flex and Flash, but also the implementation of a broad list of standards including XML, WSDL, SSDL, VoiceXML and many more.

40K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo