XML Tutorial · XML in the Real World · Lesson 28 of 28

XML Next Steps

Where to go after this tutorial: practice ideas, the XML in Production course, interview questions, and official references.

Create a free account to save this page, take notes and track your progress. Sign in

You've learned

  • XML syntax, well-formedness, escaping, encodings and namespaces.
  • Validation with DTD, XML Schema, RELAX NG and Schematron.
  • Querying and transforming with XPath, XSLT and XQuery.
  • Parsing and writing XML in Python, PHP, Java and JavaScript, streaming large files, and blocking XXE attacks.
  • Real-world formats: SOAP, RSS and Atom, sitemaps, SVG, Office files and configuration.

Practice ideas

  1. Write an XSD for an order format, then a Schematron rule that checks the total.
  2. Stream a large public XML dump (for example a Wikipedia export) and count elements in constant memory.
  3. Turn an RSS feed into an HTML page with XSLT.
  4. Audit a project you know: find every XML parser call and check it's configured against XXE.

Keep going on ReadyCamel

References

Test yourself

Which tool would you use to run XSLT 3.0?

  1. Saxon
  2. The browser's XSLTProcessor
  3. libxslt
  4. SimpleXML
Show answer

Answer: Saxon

Browsers, libxslt and the JDK implement XSLT 1.0; Saxon implements 2.0 and 3.0.

Was this page helpful?