php - What is <?xml version="1.0"?>? -


what difference between

<?xml version="1.0"?> 

and

<xml version="1.0"> 

why shorthand php in xml tag? i'm sure that's why there?

i have xml file throwing error, couldn't find error , i'm assuming it's ? in xml tag?

<?xml version="1.0"?> xml declaration. optional indication of version of xml, character encoding, , standalone document declaration. can only appear top of xml file, if anywhere, , may not repeated.

<xml version="1.0"> open tag (that require closing tag) xml element. while well-formed (if closed), not use -- looks bungled xml declaration.


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -