CRM-19210 REST API: XML tag created by numeric first character

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      {{<?xml version="1.0"?>
            <ResultSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  count="1" >
            <Result>
          ...
          <participant_role_id>
              <0>1</0>
              <1>4</1>
          </participant_role_id>
          ....
      </Result>
      </ResultSet>}}

      I attached the fix, i will create a pull request in GitHub soon.

        Attachments

          Activity

          [CRM-19210] REST API: XML tag created by numeric first character
          Coleman Watts added a comment -

          I know this is technically malformed xml. But does anyone care?
          Wondering where you bumped into a problem with this output.
          (aside, also wondering why you need xml and can't consume the json format)

          Aron Novak added a comment -

          PHP's XML parser refuses to consume the document, so yes, there are some piece of code out there that cares.

          There's already existing code what we implemented to deal with CiviCRM's REST API using XML, so I really prefer to solve this bug (as I did with the patch), instead of rewriting everything to use JSON, it would be long (and expensive) hours and an error-prone process.

            People

            • Assignee:
              Unassigned
              Reporter:
              Aron Novak

              Dates

              • Created:
                Updated: