XML Parsing

XML Parsing

If you have any trouble with Parsing or XSLTs please feel free to contact Kevin Kutys (kevin.kutys@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):

      PeopleService

      <People> <Person> <Affiliations> <YaleRelationships>MP</YaleRelationships> <PYaleRelationship>MP</PYaleRelationship> <Affiliate>N</Affiliate> <Alumnus>N</Alumnus> <Employee>Y</Employee> </Affiliations> </Person> <Person> <Affiliations> <YaleRelationships>CAS</YaleRelationships> <PYaleRelationship>CAS</PYaleRelationship> <Affiliate>N</Affiliate> <Alumnus>N</Alumnus> <Employee>Y</Employee> </Affiliations> </Person> </People>
    • Example from COASegment (Assignee is the loop):

      COASegment

      <COA> <Assignee> <Assignee_RefID>AA34</Assignee_RefID> <Assignee_Name>Ashraf, Assef [P1Placeholder]</Assignee_Name> <Assignee_Inactive>No</Assignee_Inactive> </Assignee> <Assignee> <Assignee_RefID>AA582</Assignee_RefID> <Assignee_Name>Adebamiro, Adedotun [P1Placeholder]</Assignee_Name> <Assignee_Inactive>No</Assignee_Inactive> </Assignee> </COA>

 

 

Related articles