Linebreak with DomDocument in a node

FuZ

New Member
I'm creating a xml file with the DOMDocument class in php. I want to make a block node for my address, like this:\[code\]<Address>CompanyNameStreetPlace</Address>\[/code\]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:
10ouY.png
 
Back
Top