Re: Any XML expert..?help.....

From: Arthur J. O'Dwyer (ajo_at_nospam.andrew.cmu.edu)
Date: 07/15/04


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 &nbsp; 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"



Relevant Pages

  • Any XML expert..?help.....
    ... in XML.so when u open the xml file by using Internet Explorer, ... this is a html code that imported varible from xml to html code and ... display in Internet Explorer.... ...
    (comp.programming)
  • [Help] Is J# for me???
    ... from the CD and through Internet Explorer. ... programs or C# programs that can be hyperlinked within the HTML code? ... I have tried to use J# Browser controls, ... verisign license we have now to get us out of the java sandbox? ...
    (microsoft.public.dotnet.vjsharp)
  • [HELP] Is J# for me ??
    ... from the CD and through Internet Explorer. ... programs or C# programs that can be hyperlinked within the HTML code? ... I have tried to use J# Browser controls, ... verisign license we have now to get us out of the java sandbox? ...
    (microsoft.public.dotnet.vjsharp)
  • Re: WebBrowser not displaying page in Mobile application
    ... Under debug I could see the HTML code, ... displayed in the WebBrowser object it was corrupted. ... at this point it would display an exception within ... You can send feedback directly to my manager at: ...
    (microsoft.public.vsnet.general)
  • Re: Port 119 blocked at work and I want it opened
    ... | doesn't your distrust in MS is at such a low level that your only solution ... simply alter the display, rather than actually nix HTML code in the message. ... I can see the HTML code in plain text. ...
    (comp.security.firewalls)