Menu

#5 remove child and insert string at once

open
nobody
None
5
2001-10-03
2001-10-03
Anonymous
No

request for sam:

imagine a syntax like this:

<table>
<tr>
<td>
<MY_IMAGE_1 name="something"><br/>
bla bla
<MY_IMAGE_2 name="something"><br/>
bla bla
</td>
</tr>
</table>

now i'd like to be able to replace the <MY_IMAGE_x>
tags with a string using just one function.

something like

$status = $xPath->replaceNodeByText
($absoluteXPath, 'my string');

syntax:
bool replaceNodeByText(string $absoluteXPath, string
$string)

fab

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.