Interview Q&A · questions with model answers
XML Interview Questions
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
Why shouldn't you build XML with string concatenation?
Building XML with string concatenation is dangerous because values containing &, <, or quote characters produce malformed XML, and values containing markup can alter the document structure — an XML…
-
Why can XPath inside a loop make a job very slow, and how do you fix it?
An absolute XPath expression like //customer[@id=$x] scans the entire document from the root on every evaluation. Inside a loop that runs once per record, this turns a linear operation into a…