|
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]
|