I’m creating a xml file with the DOMDocument class in php. I want to make a block node for my address, like this:
<Address>CompanyName
Street
Place</Address>
I have to create the address field like this, because the xml is imported by an other person.
I already tried “\n”, “cdata”, “< br >” but its also printed. Is there any way to make a line break with DOMDocument in an xml without any additional text?
Or is there maybe an other, better way to do this? (XMLWriter?)
Sorry for my english 🙂 and thanks for help
edit:
if i open it in firefox, it looks like this:

It actually works just fine. In your internet explorer, right click on the page and then click “view source”. The new lines are there.