The array that you use for setAttributes should be an associative array, so you are effectively doing: setAttributes
($xml->setAttributes("/users[1]/Nodename[1]",array(0 => "atr1", 1 =>
"atr2"));)
Hence you end up with:
<Nodename 0="atr1"
1="atr2"/>
Try:
setAttributes
($xml->setAttributes("/users[1]/Nodename[1]",array("atr1" =>
"value1", "atr2" => "value2"));) ===========================
For the most recent version of phpxml, V1.N.X, and an archive of this list visit: http://www.sourceforge.net/projects/phpxmldb |
Title: RE: [phpXML] Bug in setAttributes
- [phpXML] Bug in setAttributes a . tietje
- [phpXML] Bug in setAttributes nigelswinson
- [phpXML] Bug in setAttributes nigelswinson