Click to See Complete Forum and Search --> : XML with HTML


raztastic
06-12-2007, 05:23 PM
Can somebody help me, i have created XML file linked with css using note pad, when i try to load the xml file dreamweaver program opens instead of internet explorer, does that mean i have to create a html file and link them together or is there another way.

also my links does not take me to the hyperlink page and the code is

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/css" href="motorola.css"?>
<!-- This is the root for the page -->
<page>
<!-- This is will contain the main text -->
<maintext>
<!-- This is heading for the page -->
<heading>
Motorola Mobile Phones
</heading>
<!-- Set up the paragraphs with different name for each to allow differnt formatting -->
<firstpara>
Phone Name: Motorola <newline>Phone model: V3i </newline>
<newline>Network:Orange and Three </newline>
<newline>Description: Upgraded version of the RAZR phone with 1.2 megapixel camera, video camera, MP3 player, memory card and Bluetooth. </newline>
<newline>Price:£220.00 </newline>
<newline>Colour: Silver and Black </newline>

</firstpara>

<firstpara>
Phone Name: Motorola <newline>Phone model: KRZR K1 </newline>
<newline>Network: Three only </newline>
<newline>Description: Super-slim clamshell phone, with reflective glass-coated surface, video camera, 2 megapixel camera, music player, expandable memory and Bluetooth. </newline>
<newline>Price: £190.00 </newline>
<newline>Colour: Black and silver only </newline>
</firstpara>


<firstpara>
Phone Name: Motorola <newline>Phone model: L6 </newline>
<newline>Network: Three and O2 only </newline>
<newline>Description: Ultra-slim "candy bar" style phone with video camera, MP3 ringtones and Bluetooth </newline>
<newline>Price: £199.00 </newline>
<newline>Colour: Black, Silver and Blue </newline>
</firstpara>

<firstpara>
Phone Name: Motorola <newline>Phone model: E1070 </newline>
<newline>Network: All networks </newline>
<newline>Description: 3G clamshell phone with 1.3 megapixel camera, video calling, stereo MP3 player, memory card and Bluetooth </newline>
<newline>Price: £89.99 </newline>
<newline>Colour: Black Only </newline>
</firstpara>

</maintext>
<!-- This is will contain the navigation -->
<menualpha xmlns:xlink="http://www.w3.org/1999/xlink">
<thispage1>
<link
xlink:type="simple"
xlink:href="style1.xml"
xlink:show="replace"
xlink:actuate="onRequest"
xlink:title="See the first design"
>Home</link>
</thispage1>
<thispage2>
<link
xlink:type="simple"
xlink:href="style2.xml"
xlink:show="replace"
xlink:actuate="onRequest"
xlink:title="See the second design"
>Samsung</link>
</thispage2>
<thispage3>

<link
xlink:type="simple"
xlink:href="style3.xml"
xlink:show="replace"
xlink:actuate="onRequest"
xlink:title="See the third design"
>Nokia</link>
</thispage3>
</menualpha>

<menubeta>
This is some text to fill the second menu.
</menubeta>

</page>

jkmyoung
06-13-2007, 11:05 AM
Change the default program that opens the xml.

Start Menu -> Run -> type Explorer
T[U]ools -> Folder [u]Options
File Types (tab)
type in 'xml', and it should show Dreamweaver as being the default.
[U]C[U]hange
Select IE.
Make sure the "[U]A[U]lways use the selected program to open this kind of file" is checked.
Click ok.