:) Let's say that i have that code:
<sample number="1">TEXT</sample>
but sometimes it could be
<sample number"1"/>
Q: How to check if it's self closed or not ? Or I want to check if it's there TEXT within element sample
Note: I'm using that way to retrieve XML doc:
$content = @file_get_contents($url);
$xml = new SimpleXMLElement($content);
<sample number="1"></sample>?<sample number"1"/>. and retrieve data from<sample number="1">sample</sample>