I am very new to working with XML and was wondering if anyone could help get me started?
I am trying to write a VBA function that could output an array with just the List Names [ie Array("Recon", "Safety", "Performance")].
I also need to have the functionality to output an array with just a specific "To" node's text. For example, I may call the function to pull the names that are to be CC'ed in reference to the Recon list [ie Array("Jane","Ashley") or Array("Jane;Ashley;") -- whichever output that would make the most sense works for me)
Also, if there is a better way to structure this XML I would be open to changing, as I am writing this from scratch, my VBA userforms will eventually be creating and modifying this file in the end.
<?xml version="1.0" encoding="utf-8"?>
<Settings>
<DistributionLists>
<List>
<Name>Recon</Name>
<TO>John;Bob;Rob;Chris;</TO>
<CC>Jane;Ashley;</CC>
<BCC>Brent;</BCC>
</List>
<List>
<Name>Safety Metrics</Name>
<TO></TO>
<CC></CC>
<BCC></BCC>
</List>
<List>
<Name>Performance Report</Name>
<TO></TO>
<CC></CC>
<BCC></BCC>
</List>
</DistributionLists>
<Presets>
</Presets>
</Settings>