Re: quick question Php.Xpath
Brought to you by:
bs_php,
nigelswinson
From: Nigel S. <nig...@us...> - 2005-11-30 22:32:13
|
You've found a bug, thanks! So now you have two choices: 1) Get the latest version (153) from cvs which has a fix for the issue 2) Use setAttribute() instead Cheers Nigel =20 ----- Original Message -----=20 From: "Rien Swagerman" <ri...@re...> To: <nig...@us...> Sent: Monday, November 28, 2005 12:24 PM Subject: quick question Php.Xpath > I'm trying to insert/replace an attribute value like this: >=20 > $this->xPath->insertData("/bananalbum[1]/album[1]/slide[1][@label]", > "newlabelstring"); >=20 > The documentation says unde insertData: >=20 > "Insert a sub string in a text-part OR attribute-value." >=20 > How can i insert an attribute value with the insertData function? >=20 >=20 > <bananalbum> > <album label=3D"album1" layout=3D"self"> > <slide label=3D"name11"> > <label>Situatiex</label> > <txt>text here! vxvxvxvxv</txt> > <date>2005.07.03 17:29:23</date> > <filesize>0.43Mbytes</filesize> > <format>JPEG</format> > <size>138mm x 86mm</size> > <image width=3D"780" height=3D"487">487</image> > <thumb width=3D"137" height=3D"86">3000</thumb> > </slide> >=20 >=20 >=20 > Thanx > Rien. > |