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 - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Create a stacked percentage column -