|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-02-05 02:48 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 04:00:01 2025 UTC |
Description: ------------ Using the xmlwriter::writeAttribute() method after using a xmlwriter::text() or xmlwriter::writeCData() method does not work. Reproduce code: --------------- $x = new XmlWriter(); $x->openMemory(); $x->startElement("root"); $x->text("hello word"); $x->writeAttribute("foo", "bar"); $x->endElement(); $s = $x->outputMemory(true); echo $s; Expected result: ---------------- <root foo="bar">hello world</root> Actual result: -------------- <root>hello world</root>