Results 1 to 7 of 7

Thread: XML br

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2002
    Posts
    49

    XML br

    and one last question

    how write <br> in xml file for new line in text?
    where i can read about this?

    Thanks!

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    <br />
    It's considered an empty node, which can be written as above.....
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2002
    Posts
    49
    Thanks!
    i try this, but is not work
    because i need use <xsl:stylesheet for xml transform.

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    you have to enlcose it in cdata

    Code:
    <![CDATA[
        <br/>
    ]]>
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5

    Thread Starter
    Member
    Join Date
    Jun 2002
    Posts
    49
    and i see br in the page, but i need new line.

    thank you for help!

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    <br /> is an XHTML tag. In XML for a newline, well, hit enter and have the element that encloses the newlines have xml:preserve-spaces (or something like that, you need to look it up) set to "1".
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  7. #7

    Thread Starter
    Member
    Join Date
    Jun 2002
    Posts
    49
    Thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width