Java – Request: https://www.w3.com Org / 2000 / SVG discovery: http://www.w3.com org/2000/svg

See English answer > XML namespace URI with HTTPS? 1

Now, when we render SVG files, we encounter this problem

>The original SVG is:

svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"

>The SVG conversion is:

svg xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\"

So I try to use dhttps in Java The protocols parameter is useless I'm mining source code for this

Solution

Do not change the URL of the namespace definition These are attributes that begin with xmlns, optionally followed by: and a more detailed name

For SVG, the namespace must be http://www.w3.org/2000/svg See the specification

These URLs are not used to connect, they just define the meaning of elements (see XML namespaces), so you won't get any security by changing them Instead, you just invalidate your SVG file

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>