Re: Any XML expert..?help.....
From: Arthur J. O'Dwyer (ajo_at_nospam.andrew.cmu.edu)
Date: 07/15/04
- Next message: Robert Strandh: "Re: OOP and memory management"
- Previous message: Thomas Gagne: "Re: Semantics and STL/DTL"
- In reply to: zheetee: "Any XML expert..?help....."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 15 Jul 2004 09:51:50 -0400 (EDT)
On Thu, 15 Jul 2004, zheetee wrote:
>
> i know that we can put CData to preserve the space between character
> in XML.so when u open the xml file by using Internet Explorer,
> everything will displayed correctly with preserve all the space.
>
> but when u pass the xml's variable to html code and display in
> internet explorer.it won't preserve the space any more.
>
> For example:
> this is a html code that imported varible from xml to html code and
> display in Internet Explorer....
>
> html:
> <pre>
What is this <pre> tag doing here? There is no closing </pre>
tag associated with it!
> <tr><td><b>New Features and Fixes: </b></td></tr>
> <tr><pre><td id="td_sum"></td></pre></tr>
>
> <tr><td><b>New Features: </b></td></tr>
> <tr><pre><td id="td_newf"></td></pre></tr>
>
> <tr><td><b>Fixes: </b></td></tr>
> <tr><pre><td id="td_fixes"></td></pre></tr>
>
>
> xml:
>
> <set>
> <td_newf><![CDATA[
> 1
> 2
> 3
> ]]>
> </td_newf>
> </set>
>
> so when the html executed.it will displayed the td_newf(long article)
> 1 2 3 so it will not preserve all the space on internet explorer
> however i was put <pre> inside html code.....
>
> but i want the html display td_newf on IE like:
> 1
> 2
> 3
Use <pre> tags, or and <br> in place of regular space and
newline. (It's easy to do with a CGI script or any other kind of
scripting you might have at your disposal, if you don't want to make
your XML uglier.)
If you can't figure out how to make that idea work, then post
the smallest complete, viewable example of what you have, and what
you want to happen. I don't think many people here are intimately
familiar with HTML/XML/Microsoft Internet Explorer quirks.
You might even try Googling up the FAQ for comp.text.xml, to
see whether your query might be topical there. Or I'm sure there
are plenty of "web authoring" newsgroups around.
-Arthur
brought /to you/ by the letter "u" and the numeral "2"
- Next message: Robert Strandh: "Re: OOP and memory management"
- Previous message: Thomas Gagne: "Re: Semantics and STL/DTL"
- In reply to: zheetee: "Any XML expert..?help....."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|