Challenge 35 – Can you find a specific XML element?
To perform effectively as a software application developer, one must be acquainted with various facets of application development. To test the skills of application developers, Superior Consulting Services (SCS) offers a series of technical coding challenges designed to challenge and educate application developers. This blog addresses business analysis and presents SCS’ thirty fifth (35th) challenge: Can you find a specific XML element?
Let’s get ready to rumble
Each SCS challenge will require the user to solve a problem. All questions are designed to be solvable by mid-level application developers in one hour or less. The 35th challenge is shown below.
Given an XML document, create the smallest function possible (based upon character count) to return the value of a specific element, at a specific position within the document.
A sample prototype for the function is shown below.
Please feel free to embellish the parameter list and the function body, using any method, language or add-on that you would like.
Sample XML Document
- Write a function to return the value of a specific element in an XML formatted document.
- The respondent with a correctly operating function using the least amount of code will be declared the winner.
- Contestant challenge submittals should be emailed to email@example.com, Subject Line SCS Coding Challenge #35.
- Reponses to Challenge #35 should be received by 5:00 pm CDT, January 31st, 2018.
- In the event of a tie between two or more winning solutions, the first solution received will receive the prize; however, all submitters with good solutions will be recognized.
- Employees of SCS are not eligible to participate in the coding challenge.
The best solution submitted will receive an Amazon.com gift certificate worth $25.00 (U.S. dollars) and have the winning solution, along with the winner’s name, on the SCS website: www.teamscs.com.