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
Yes, you can have multiple Processing instructions ( <?...?> ), but No, you can have only one Prolog ( <? xml ...?> ).
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With