You are here: how to include xml code as content in an html file? « HTML « IT news, forums, messages
how to include xml code as content in an html file?

Posted by John Salerno on 10/04/06 18:00

Hi all. Been a while since I was in here, but I'm back on the HTML horse
for now. :)

Anyway, can someone tell me how to include XML data as text in an HTML
file? I don't know if that makes sense, because I'm not sure of the
right terms to use (data, content, text, etc.) But here's what I have,
and instead of just showing all this as text, it omits all of the XML tags.

Thanks!



<code><pre>#design layout in a separate XML file
<?xml version="1.0" encoding="cp1252"?>
<resource>
<object class="wxFrame" name="mainFrame">
<title>My Frame</title>
<object class="wxPanel" name="panel">
<object class="wxFlexGridSizer">
<cols>2</cols>
<rows>3</rows>
<vgap>5</vgap>
<hgap>5</hgap>
<object class="sizeritem">
<object class="wxStaticText" name="label1">
<label>First name:</label>
</object>
</object>
<object class="sizeritem">
<object class="wxTextCtrl" name="text1"/>
</object>
<object class="sizeritem">
<object class="wxStaticText" name="label2">
<label>Last name:</label>
</object>
</object>
<object class="sizeritem">
<object class="wxTextCtrl" name="text2"/>
</object>
<object class="spacer">
<size>0,0</size>
</object>
<object class="sizeritem">
<object class="wxButton" name="btn">
<label>Submit</label>
</object>
</object>
</object>
</object>
</object>
</resource></pre></code>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация