Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XML what does that question mark mean

Tags:

xml

I know XML documents usually start with something like:

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

My question is regarding the <? and ?> what do they mean on their own? As in what does:

<?Any old text?>

mean in XML

Thanks

like image 744
More Than Five Avatar asked Aug 24 '16 09:08

More Than Five


People also ask

Is question mark allowed in XML?

Yes, you can have multiple Processing instructions ( <?...?> ), but No, you can have only one Prolog ( <? xml ...?> ).

What are XML terminologies?

Extensible Markup Language (XML) is a standard for creating markup languages that describe the structure and meaning of data in a document. XML separates the content of a document from its presentation and provides a common format for transferring data across the World Wide Web (WWW) or company intranet.


1 Answers

It's a prolog – see 'The XML Prolog' in XML Syntax Rules at w3schools.com.

For more thorough definition see '2.8 Prolog and Document Type Declaration' in 'Extensible Markup Language (XML)' at W3C.

like image 185
CiaPan Avatar answered Sep 20 '22 16:09

CiaPan