PDA

View Full Version : XML Line Break in DREAMWEAVER



cholub
August 5th, 2008, 04:41 PM
Trying to figure out who to make line breaks in dreamweaver, NOT flash.
I'm sure it's quite simple but I cannot get it. Please advise, -chris

Currently my coding looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="1xml_menu.xsl" type="text/xsl"?>
<specials>
<menu_item id="1">
<item>HAPPY HOUR</item>
<link></link>
<description>Every Day: 2-4pm + 10pm-Close Wine selections include A, B, C. Enjoy our cozy setting indoors and out!</description>

Assume I want items to Look like this:
(line1) Every Day: 2-4pm + 10pm-Close
(line2) Wine selections include A, B, C
(line3) Enjoy our cozy setting indoors and out!

manny2k
August 6th, 2008, 12:48 PM
Have you tried CDATA like below, this works for me when i output the xml into a spry widget

<description><![CDATA[Every Day: 2-4pm + 10pm-Close <br>Wine selections include A, B, C. <br />Enjoy our cozy setting indoors and out!]]></description>

cholub
August 6th, 2008, 04:02 PM
Tried suggested coding and this was message received in browser:

SAXParseException: Expected end of tag 'menu_item' (1specials.xml,line 7, column 129)

manny2k
August 6th, 2008, 04:31 PM
Tried suggested coding and this was message received in browser:

SAXParseException: Expected end of tag 'menu_item' (1specials.xml,line 7, column 129)


i'm not to hot on xml but i would suggest that means close the menu tag </menu_item>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="1xml_menu.xsl" type="text/xsl"?>
<specials>
<menu_item id="1">
<item>HAPPY HOUR</item>
<link></link>
<description><![CDATA[Every Day: 2-4pm + 10pm-Close <br>Wine selections include A, B, C. <br />Enjoy our cozy setting indoors and out!]]></description>
</menu_item>
</specials>