I'm building a section of a website with asp and xml, and I have it set up so that the asp calls to the xml doc and writes the text to the browser. I need to set it up so that the asp can write a
tag whenever it encounters a return in the text. example:
**** "poem.xml" XML Doc****
<document>
<content>
<![CDATA[
Smell the buring flesh.
Taste the tangy sulphur air.
Volcano season.
]]>
</content>
</document>
****XML Doc****
====Asp page====
<%
Set objXMLDoc = Server.CreateObject("Microsoft.XMLDOM")
objXMLDoc.async = False
objXMLDoc.load(Server.MapPath("poem.xml"))
%>
<html>
<title>Haiku</title>
<body>
<%
poemString = objXMLDoc.firstChild.firstChild.text
%>
<%=poemString%>
</body>
</html>
====Asp page====
Right now, this will right the folowing in the browser:
Smell the buring flesh.Taste the tangy sulphur air.Volcano season.
How do I get it to write the following without adding
tags in the XML doc
:
Smell the buring flesh.
Taste the tangy sulphur air.
Volcano season.
tag whenever it encounters a return in the text. example:
**** "poem.xml" XML Doc****
<document>
<content>
<![CDATA[
Smell the buring flesh.
Taste the tangy sulphur air.
Volcano season.
]]>
</content>
</document>
****XML Doc****
====Asp page====
<%
Set objXMLDoc = Server.CreateObject("Microsoft.XMLDOM")
objXMLDoc.async = False
objXMLDoc.load(Server.MapPath("poem.xml"))
%>
<html>
<title>Haiku</title>
<body>
<%
poemString = objXMLDoc.firstChild.firstChild.text
%>
<%=poemString%>
</body>
</html>
====Asp page====
Right now, this will right the folowing in the browser:
Smell the buring flesh.Taste the tangy sulphur air.Volcano season.
How do I get it to write the following without adding
tags in the XML doc
Smell the buring flesh.
Taste the tangy sulphur air.
Volcano season.