XML with PHP DOM


i have xml files want able add attribute parent nodes in file. can add attribute new parent nodes when created setting attributes existing parent nodes. add attributes new parent nodes code:

$item = $dom->createelement("a_transaction");
$item->setattribute('cat', "$catid");
$item->setattribute('subcat', "$subcatid");

i able add attribute {a_transaction} parent node when editing sibling nodes values.
i can edit sibling node values set attribute parent when editing siblings.
any ideas?



More discussions in Dynamic HTML General Discussion (read only)


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support