I am having a problem with empty xml tags. If I create a
document and
$xml = "<relations/>";
$xmldom = new MiniXMLDoc();
$xmldom->fromString($xml);
I get an element called <relation> instead of <relations>
If however I include a space in the xml e.g.
$xml = "<relations />";
$xmldom = new MiniXMLDoc();
$xmldom->fromString($xml);
It works fine.
I have traced the problem to the regular expression in
line 441 of version 1.2.2 My ability with regular
expressions is limited so I thought I would contact you
guys. I will have a stab at fixing it locally in the mean
time.
Also, I want to say that the product is excellent. Very
useful and intuitive.
Thanks
Mark Guerin
Logged In: YES
user_id=744788
Hi Mark,
I just faced the same issue and submitted a patch to 1.2.8
You may have fixed the problem, i hope you did since.
I hope Pat Deegan could integrate this fix in a future release.
Best regards,
Frank