Home  >  Q&A  >  body text

How to add newline character (newline character) in XML file?

I have an XML file and I want to wrap lines in the text "Sample Text 123" Like this

Sample
Text 123

I have tried everything I said n But nothing works:

<?xml version="1.0" encoding="UTF-8" ?>
    <item>
        <text>Address</text>
        <data>
            Sample &#xA; Text 123
        </data>
    </item>


P粉481035232P粉481035232337 days ago672

reply all(1)I'll reply

  • P粉824889650

    P粉8248896502023-11-17 11:21:33

    Line feed (also known as Line feed or End of line, EOL) is a special character or character that marks the end of a line of text sequence. The exact code used varies by operating system:

    operating system End of Line (EOL) Marker
    Unix LF
    Maximum version of Mac operating system 9 CR
    Windows、DOS CR LF

    reply
    0
  • Cancelreply