当我尝试将 xsd 附加到 xml 时,xml 的根变为红色(在 Intellij IDEA 中),这可能是什么问题?
When I try to attach xsd to xml, root of xml become red(in Intellij IDEA), what problem it can be?
我将 xsd 附加到 xml:
<product name="example" version="example" xmlns:msi="http://www.w3.org/2001/XMLSchema" xsi:noNamecpaceLocation="product.xsd">
但是产品看不到架构,我该如何解决?
不应该
xsi:noNamecpaceLocation
成为
xsi:noNamespaceSchemaLocation
和
xmlns:msi="http://www.w3.org/2001/XMLSchema"
成为
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
我将 xsd 附加到 xml:
<product name="example" version="example" xmlns:msi="http://www.w3.org/2001/XMLSchema" xsi:noNamecpaceLocation="product.xsd">
但是产品看不到架构,我该如何解决?
不应该
xsi:noNamecpaceLocation
成为
xsi:noNamespaceSchemaLocation
和
xmlns:msi="http://www.w3.org/2001/XMLSchema"
成为
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"