Drop type and Id attributes on XML queried records and unlist
This function will detect if there are metadata fields returned by the SOAP
API XML from sf_query
and remove them as well as unlisting (not recursively)
to unnest the record's values. Only tested on two-level child-to-parent relationships.
For example, for every Contact (child) record return attributes from the
Account (parent) as well (SOQL = "SELECT Name, Account.Name FROM Contact")
xml_drop_and_unlist(x)
x |
|
This function is meant to be used internally. Only use when debugging.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.