Possible Duplicate:
SimpleXML Reading node with a hyphenated name
I have some xml which has non alpha characters in the element names, such as '.' or '-'
e.g.
<MyXML>
    <SomeData>
        <Period.InTheMiddle>Data i want to get</Period.InTheMiddle>
    </SomeData>
</MyXML>
Now using $xml->SomeData->Period.InTheMiddle to get at the data won't work. So what do I have to do to be able to use elements that have '.' or '-' in their name?
 
    