I'm working parsing an XML file, can anyone help me to parse the last and innermost child node.
<section index="2.2.4" title="Recommendation" ref="RECOMMENDATION">
<text>DWS strongly recommends that all authentication credentials should be configured with a strong password.</text>
<text>DWS recommends that:</text>
<list type="bullet">
<listitem>passwords should be at least eight characters in length;</listitem>
<listitem>characters in the password should not be repeated more than five times;</listitem>
<listitem>passwords should include both upper case and lower case characters;</listitem>
<listitem>passwords should include numbers;</listitem>
<listitem>passwords should include punctuation characters;</listitem>
<listitem>passwords should not include the username;</listitem>
<listitem>passwords should not include a device's name, make or model;</listitem>
<listitem>passwords should not be based on dictionary words.</listitem>
</list>
<text>Notes for Cisco Catalyst Switch devices:</text>
<text>The following commands can be used on Cisco Catalyst Switch devices to set the enable password, create a local user with a password and to delete a local user:<code><command>enable secret <cmduser>password</cmduser></command>
<command>username <cmduser>user</cmduser> secret <cmduser>password</cmduser></command>
<command>no username <cmduser>user</cmduser></command>
</code></text>
</section>
can anyone help to parse this innermost child node in PHP?
<code><command>enable secret <cmduser>password</cmduser></command>
<command>username <cmduser>user</cmduser> secret <cmduser>password</cmduser></command>
<command>no username <cmduser>user</cmduser></command>
</code></text>
</section>
Especially this command cmd user command???
enable secret password
username user secret password
no username user
especially i need the output, but im unable to parse it , i get data till The following commands can be used on Cisco Catalyst Switch devices to set the enable password, create a local user with a password and to delete a local user: after that its not coming??? can please provide any code – Jun 06 '18 at 06:48