Does xmlNewDoc() support XML 1.1?

The documentation for xmlNewDoc() says the version argument has to take a string of “1.0”. However, XML 1.1 was released in 2006. I also don’t see anything in xmlNewDoc() or its immediate vicinity that would limit it to 1.0, besides 1.0 being the default.

Do you think it’s acceptable to pass “1.1”? If so, can we update the documentation?


libxml2 only supports XML 1.0.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.