What is the correct syntax when we define XML version?



What is the correct syntax when we define XML version?..

Answer / Arya Kumari

The correct syntax to define XML version is by using a processing instruction (PI) at the beginning of the document, before any XML declaration. The PI should be <?xml version="version" encoding="encoding"?> where 'version' specifies the version number and 'encoding' defines the character encoding used in the document.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More XML XSLT RSS Interview Questions

Is xml a programming language?

1 Answers  


What are xml tags?

1 Answers  


Can an application process documents that use xml namespaces and documents that don’t use xml namespaces?

1 Answers  


How many types of xpath are there?

1 Answers  


What is an xml feed?

1 Answers  


Can you open xml in excel?

1 Answers  


If I start using xml namespaces, do I need to change my existing dtds?

1 Answers  


Does the xml namespaces recommendation define anything except a two-part naming system for element types and attributes?

1 Answers  


What is wsdl used for?

1 Answers  


How do I find rss feed url?

1 Answers  


Is xsl and xslt the same?

1 Answers  


Explain about the techniques for processing xml files?

1 Answers  


Categories