Replies: 10 comments
|
Hi nathan, |
|
Thanks for your answer and sorry for the late answer. With your piece of code I didn't achieve what I want to do.. I have an XML file organize like this : And I want to know how to delete one of the "event" node. I try something with your answer, but none of my I try works... Thanks in advance |
|
Supposing you want to delete the or If you really want to use filter: Hope you found what you were looking for. |
|
Awesome, thanks a lot for your amazing help EDIT : I try the first one, and the other, and it's not working.. I have no error but nothing was deleted.. Here is my piece of code : `require_once 'FluidXml.php'; use \FluidXml\FluidXml; $split = array(); |
|
I tested your code and FluidXML behaves as expected removing the first
outputs this p.s.: |
|
Well, I really don't understand why I don't have the same behavior as you.. I try different things and I always have the same result with no node deleted |
|
Attach your files here, XML and PHP code. I'll give it a look. |
|
Thanks a lot |
|
Sorry for the late reply. I checked up your code and the call at line is behaving as expected, removing every event node with the searched color. You can see it simply adding this code after line which will print an empty I think you have an error in the logic of your code, maybe missing the Cheers! |
|
Awesome, Thanks a lot for your help, really Enjoy your day |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I want to remove some nodes with a certain end and startdate. Do you have any clue to achieve this ?
Thanks in advance
All reactions