Total noob here so I am sorry for my ignorance in advance.
Most of what I have searched and messed around with has centered around using XML::LibXML
with XPath.
The problem that I have is that I am not looking to capture text between tags: I need values of the tags.
This is my XML structure
<users>
<entry name="asd">
<permissions>
<role-based>
<superuser>yes</superuser>
</role-based>
</permissions>
</entry>
<entry name="fgh">
<permissions>
<role-based>
<superuser>yes</superuser>
</role-based>
</permissions>
<authentication-profile>RSA Two-Factor</authentication-profile>
</entry>
<entry name="jkl">
<permissions>
<role-based>
<superreader>yes</superreader>
</role-based>
</permissions>
<authentication-profile>RSA Two-Factor</authentication-profile>
</entry>
</users>
I am trying to grab the name attribute (without the quotes) and also determine whether this person is a superuser or superreader.
I am stuck at not being able to do much other than print off the nodes. I need to turn this into a CSV file in the structure of username; role