Replies: 10 comments
-
Hi nathan,
|
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Supposing you want to delete the
or
If you really want to use filter:
Hope you found what you were looking for. |
Beta Was this translation helpful? Give feedback.
-
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(); |
Beta Was this translation helpful? Give feedback.
-
I tested your code and FluidXML behaves as expected removing the first
outputs this
p.s.: |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Attach your files here, XML and PHP code. I'll give it a look. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot |
Beta Was this translation helpful? Give feedback.
-
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! |
Beta Was this translation helpful? Give feedback.
-
Awesome, Thanks a lot for your help, really Enjoy your day |
Beta Was this translation helpful? Give feedback.
-
Hi,
I want to remove some nodes with a certain end and startdate. Do you have any clue to achieve this ?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions