Link to home
Start Free TrialLog in
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  


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

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

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