Xml 如何在IntelliJ Idea中使用大量只有一个名称空间的xsd文件并查看工具提示?

Xml 如何在IntelliJ Idea中使用大量只有一个名称空间的xsd文件并查看工具提示?,xml,spring,xsd,intellij-idea,Xml,Spring,Xsd,Intellij Idea,我对IntelliJ Idea 11.1.4中的工具提示有一些问题 我有一个项目,其中我使用spring进行配置 当我想在一个文件中合成许多xsd文件时,工具提示不起作用。我给你举个例子。 在spring.schemas中,我们有两条记录 http\://www.example.com/schema/test.xsd=test-schema.xsd http\://www.example.com/schema/test-in.xsd=test-schema-in.xsd 在.xsd中测试架构

我对IntelliJ Idea 11.1.4中的工具提示有一些问题

我有一个项目,其中我使用spring进行配置

当我想在一个文件中合成许多xsd文件时,工具提示不起作用。我给你举个例子。 在spring.schemas中,我们有两条记录

http\://www.example.com/schema/test.xsd=test-schema.xsd
http\://www.example.com/schema/test-in.xsd=test-schema-in.xsd
在.xsd中测试架构

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema xmlns="http://www.example.com/schema/test"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:beans="http://www.springframework.org/schema/beans"
            targetNamespace="http://www.example.com/schema/test"
            elementFormDefault="qualified">

    <xsd:element name="name-element" type="type1"/>

    <xsd:complexType name="type1">
        <xsd:complexContent>
            <xsd:extension base="beans:identifiedType">
                <xsd:all>
                    <xsd:element name="name" type="xsd:string"/>
                </xsd:all>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

</xsd:schema>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema xmlns="http://www.example.com/schema/test"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:beans="http://www.springframework.org/schema/beans"
            targetNamespace="http://www.example.com/schema/test"
            elementFormDefault="qualified">

    <xsd:include schemaLocation="http://www.example.com/schema/test-in.xsd"/>

    <xsd:element name="age-element" type="type2"/>

    <xsd:complexType name="type2">
        <xsd:complexContent>
            <xsd:extension base="beans:identifiedType">
                <xsd:all>
                    <xsd:element name="age" type="xsd:integer"/>
                </xsd:all>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

</xsd:schema>

测试schema.xsd

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema xmlns="http://www.example.com/schema/test"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:beans="http://www.springframework.org/schema/beans"
            targetNamespace="http://www.example.com/schema/test"
            elementFormDefault="qualified">

    <xsd:element name="name-element" type="type1"/>

    <xsd:complexType name="type1">
        <xsd:complexContent>
            <xsd:extension base="beans:identifiedType">
                <xsd:all>
                    <xsd:element name="name" type="xsd:string"/>
                </xsd:all>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

</xsd:schema>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema xmlns="http://www.example.com/schema/test"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:beans="http://www.springframework.org/schema/beans"
            targetNamespace="http://www.example.com/schema/test"
            elementFormDefault="qualified">

    <xsd:include schemaLocation="http://www.example.com/schema/test-in.xsd"/>

    <xsd:element name="age-element" type="type2"/>

    <xsd:complexType name="type2">
        <xsd:complexContent>
            <xsd:extension base="beans:identifiedType">
                <xsd:all>
                    <xsd:element name="age" type="xsd:integer"/>
                </xsd:all>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

</xsd:schema>

我们有这样简单的xml文件

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:ex="http://www.example.com/schema/test"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.example.com/schema/test
       http://www.example.com/schema/test.xsd">

    <ex:age-element>
        <ex:age>
            3
        </ex:age>
    </ex:age-element>

    <ex:name-element>
        <ex:name >
            Simple Name
        </ex:name>
    </ex:name-element>

</beans>

3.
简单名称
在工具提示中,我可以看到年龄元素,但看不到名称元素

是否有一种解决方案可以使用一个名称空间(包含)的大量xsd文件并查看Idea工具提示中的元素