Updated "DuplicateWithAttributes/DuplicateWithAllAttributes" to create a DSFunction XmlElement