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 What is an XXE attack and how do you prevent it?
XML External Entity (XXE) injection occurs when an XML document declares an external entity pointing to a file or URL (<!ENTITY x SYSTEM "file:///etc/passwd">), and a parser that resolves external…
-
Most asked What is XML and where is it still used today?
XML (Extensible Markup Language) is a text-based format for representing structured data using custom tags arranged in a tree hierarchy with strict syntax rules and optional schema validation.…
-
What is the billion laughs attack?
The billion laughs attack (also called an XML bomb) is a denial-of-service exploit where nested internal entity declarations each reference the previous one multiple times, causing a document of…
-
What is XML canonicalization and why do signatures need it?
XML canonicalization (C14N) defines a single deterministic byte-level serialization for an XML document's logical content: attribute order, quote style, empty-element form, whitespace in tags, and…
-
What is XQuery and how does a FLWOR expression work?
XQuery is a query language for XML that is a functional superset of XPath 2.0+. It is used primarily with XML databases (BaseX, eXist-db, MarkLogic) and processors like Saxon. A FLWOR expression —…