← All docs

xml_parser_create_ns()

Creates a namespace-aware XML parser whose qualified names join the URI and local name with a separator.

xml_parser_create_ns()

function xml_parser_create_ns(?string $encoding = null, string $separator = ':'): mixed

Creates a namespace-aware XML parser whose qualified names join the URI and local name with a separator.

Parameters:

  • $encoding (?string), default null, optional
  • $separator (string), default ':', optional

Returns: mixed

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how xml_parser_create_ns is implemented in the compiler, see the internals page.