insertData in empty element
Brought to you by:
bs_php,
nigelswinson
From: Branko N. <bra...@in...> - 2002-07-03 16:12:58
|
Hello! I tried to insert data in empty element with no text data (with atributes only): xPath->insertData("//user[@username='jane']/name", "Jane"); but xml data remains the same: <?xml version="1.0" encoding="utf-8"?> <users> <user username="jane" pasw="jgeslo"> <name/> </user> </users> It should be <?xml version="1.0" encoding="utf-8"?> <users> <user username="jane" pasw="jgeslo"> <name>Jane</name> </user> </users> Bug or I miss something? Any suggestions? Branko |