Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The LinkedIn API uses XML with node names that contain dashes (-). HttpClientXMLFormatter replaces the dashes with underscores in the function sanitizeNodeName() (line 69 in HttpClientXMLFormatter.inc).
According to the standard, dashes are allowed:
"Tag names cannot contain any of the characters !"#$%&'()*+,/;<=>?@[\]^`{|}~, nor a space character, and cannot start with -, ., or a numeric digit."
Can this be fixed with a proper preg_replace?