You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The syntax for using HTML with XML, whether in XHTML documents or embedded in other XML documents, is defined in the XML and Namespaces in XML specifications.
The XML standard explicitly says that a well-formed document should begin with <?xml
But here is an example of an actual XHTML file starting with a comment:
<!-- HTML header for doxygen 1.8.7-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
This may lead to an incorrectly detected file type, which in turn causes an error like #4.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Can an HTML or XML document begin with a comment?
<?xml
But here is an example of an actual XHTML file starting with a comment:
This may lead to an incorrectly detected file type, which in turn causes an error like #4.
Beta Was this translation helpful? Give feedback.
All reactions