I have just begun developing with the DOM XML library included in PHP and some of the functionality is not what I expected. The format of my xml document is:
<Application>
<DatabaseAccount name="...">
<Username>username</Username>
<Password></Password>
<Host></Host>
<Port></Port>
<Database></Database>
<ClientFlags></ClientFlags>
<NewConnection></NewConnection>
<TTY></TTY>
<SecurityLevel></SecurityLevel>
</DatabaseAccount>
</Application>
When I turn this into a DOM XML tree object (or tree of objects) I would expect that the <Username> node would be node_type=3 with content "username", but it shows instead to be node_type=1 with no content. The <Username> node has a sub-node of type 3 and name=#text which contains the content "username" that I expected to see one level up. I can code for this easily enough, but I'm afraid that I'm missing something important about the DOM XML structure. Any comments would be appreciated.