Developer reference

XML Workflow Cheatsheet

XML linting, XPath, XSLT, and JSON conversion reminders for local XML snippets.

XML declaration

Common XML header for documents.

<?xml version="1.0" encoding="UTF-8"?>

XPath by attribute

Select elements by attribute.

//*[@id="main"]

XPath text

Read text nodes from matching elements.

//title/text()

XSLT output

Emit selected XML content in a transform.

<xsl:value-of select="title"/>

Related tools

Related categories