How do I store line breaks in XML?

Source: Internet
Author: User
Tags chr xsl
Xml

<br> or Chr (13) &CHR not available
Because XML will think of <br> as a node
I read Csdn.net's XML, and there's no newline symbol.
What should be done to ask?


Reply Person: Yeefly (Web Development Edition) () Prestige: 2002-12-26 17:52:24z Score: 0


?
Or how to wrap a line with an XSL implementation,
I use <xsl:value-of select= "Main/content"/>
It's not going to change.
Concern!!


Top

Reply person: zykj_2000 (I want to do FC simulator, who has 6502 data) () Prestige: 2002-12-26 18:10:09z Score: 14


?
Is it in the Web??
<! [Cdata[hello
<br>world]]>


Top

Reply person: JNKC (Jiangnan insect) () Prestige: 207 2002-12-26 18:10:36z Score: 14


?
XmlText = Replace (XmlText, "<br>", vbCrLf)



Top

Reply person: allforly (white blood wins) () Prestige: 126 2002-12-26 18:39:32z Score: 2


?
If the data you save is wrapped, the line is automatically wrapped in XML, for example:
bbbb
Aaaa
Cccc

You want to take out, the method is diverse, JavaScript uses Data.replace (/\n/g, "<br>")
ASP with data = replace (DATA,CHR (&CHR), "<br>")





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.