I'm not very good in regex... so if somebody could help me with this one (maybe trivial)
[update] First i'm not looking for the best way of manipulating xml (SimpleXMLElement,DOM etc... is fine). I'm just looking for this regex out of the context off XML.
i have xml like that
<myxml>
<node>21</node> som text with <entite>some</entite> other <b>nodes</b>
<node>22</node> some text
</myxml>
I would like to extract <node> with all other entite and text block until next <node> result could be like :
Array {
[0] = "<node>21</node> som text with <entite>some</entite> other <b>nodes</b>",
[1] = "<node>22</node> some text"
}
I don't want to use DOMElement for parsing the XML, so i realy looking for regex.
thanks if you have an idea.