Sample Xml Code
<directory>
<fieldset>
<field id="displayName">Display name</field>
</fieldset>
<employees>
<employee id="123">
<field id="displayName">John Doe</field>
</employee>
<employee id="160">
<field id="displayName">Jane Doe</field>
</employee>
Using XmlService.parse to retrieve content within each element works fine, but there seems to be an issue with extracting the employee/element id numbers
After running this code snippet:
var roots = document.getRootElement().getChild('employees').getChildren();
The individual elements are retrievable, however, there is difficulty in obtaining the id's
[[Element: <employee/>], [Element: <employee/>], [Element: <employee/>],...