Jump to content

extended characters in XML


henny
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...