Jump to content

extended characters in XML


henny

Recommended Posts

hello there,I've the following text in my database " The quick brown fox<br>jumps over the lazy dog " I would like to export that into an XML-file filehow do I convert the new line character <br> into XML ??thx a lot

Link to comment
Share on other sites

Technically speaking, <br> is not a new line character, but is only rendered as such on screen.The easiest way is to add a slash before the ">" making "<br>" into "<br />". The space is only there for support in old Netscape browsers (though I'm personally pretty much used to it).If that is not feasable, you'll need to convert "<" and ">" to their entity equivalents "<" and ">" respectively.You could also turn the <br> into a new line character, that is" The quick brown fox<br>jumps over the lazy dog "will become" The quick brown foxjumps over the lazy dog "What you do depends on what you plan to use the XML for, what exactly are you allowed to do to the database, etc. etc.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...