/
XML Parsing
XML Parsing
If you have any trouble with Parsing or XSLTs please feel free to contact Marissa Kitz (marissa.kitz@yale.edu).
When parsing using XML please be aware of these items:
- The loop attribute is where each row is returned
Example from PeopleService (Person is the loop):
Example from COASegment (Assignee is the loop):
- Counts/Version information is shown in the footer
- There are entities that have special meaning in XML and these characters also exist in the data. So when parsing you should un-escape the values.
<
represents "<";>
represents ">";&
represents "&";'
represents "'";"
represents '"'.
- The encoding is UTF-8
- Full data sets are difficult to extract in SOAPUI or Postman and will often result in crashes
- Null data doesn't return tags in XML. Attributes will only return if these 2 scenarios are true:
- You have access to see that column
- There is data for that attribute for that person
- If you do not require all columns in a data set, you do not have to parse all of the data. Only parse what you need.
Related articles
Related content
SearchByIndividual Service Making Requests
SearchByIndividual Service Making Requests
More like this
PeopleService Making Requests
PeopleService Making Requests
Read with this
GetSupervisoryOrgs
GetSupervisoryOrgs
More like this
AppointmentService Making Requests
AppointmentService Making Requests
More like this
Roles Service
Roles Service
More like this
COA Segment Service Example Requests
COA Segment Service Example Requests
More like this