PHP XMLWriter, how to insert a line break?
问题 I'm using XMLWriter http://www.php.net/manual/en/book.xmlwriter.php to let my webclient create an XML File. In the beginning there has to be an element with very many attributes, like this: $xml->startElement('registry-request'); $xml->writeAttribute('att1', 'long text'); $xml->writeAttribute('att2', 'long text'); $xml->writeAttribute('att3', 'long text'); $xml->writeAttribute('att4', 'long text'); So that part in the XML file will look something like this: <registry-request att1="long text"