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.
-
Most asked How would you process a 10 GB XML file?
Stream it using a parser that does not build the full tree: Python's lxml iterparse with clear() and sibling deletion, PHP's XMLReader expanding one record at a time, or Java's StAX/SAX. Process…
-
How do you design an XML contract that can evolve without breaking consumers?
Design an evolvable XML contract by versioning it explicitly (via namespace or version attribute), adding extension points (xs:any processContents="lax") so new elements validate without breaking…