Transferred from: http://blog.csdn.net/xuewater/article/details/25687987
When writing a string in a resource file, if the string is dynamic and indeterminate, we can use the xliff:g tag, but The resource file I wrote has always been wrong, such as:
<string name="chronometer_initial_format">initial format: <xliff:g ID ="initial-format">%1$s </xliff:g></string>
The error hint is: Error:error parsing xml:unbound prefix, the first thought is the format string%1 $ s problem, removed the%1 $ s error remains.
It will then directly
<xliff:g id="initial-format">%1$s </xliff:g>
Get rid of, the mistake is gone. Even so, that error should be related to Xliff:g, which is linked to the error prompt: "Parsing XML error: No binding prefix".
That is, Xliff does not have a binding and no declaration, the XML parser cannot parse it, it is the declaration of the Xliff namespace less (see below)
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"
tags in string.xml in android Xliff:g (reprint)