是否可以将 xsd 附加到 xml,如果 xsd 在互联网上定位,而不是在这台电脑上?

Is it possible to attach xsd to xml, if xsd locate in the internet, Not on this pc?

<product name="qwerty" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceLocation="product.xsd">

我可以在 xsd 文件的某些 URL 上更改 product.xsd 吗,比如:

<product name="qwerty" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceLocation="http://www.example.com/product.xsd">

在Intellij-IDEA我尝试这样做:

<product name="qwerty" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceLocation="http://www.example.com/product.xsd">

我的 xsd 位置变成红色。我点击 alt+enter,它解决了我的问题。另外 IDEA 添加 "File, Settings, Schemas & DTDs" 我的 URL。