0

我创建的 xml 有问题吗?有什么办法可以优化或改进吗?

<?xml version="1.0" encoding="UTF-8"?>
    <countries>
        <country>
            <countryname>Philippines</countryname>
            <subsidiaries>
                <subsidiary>
                    <name>Sartorius Philippines Inc.</name>
                <address>Unit 20-A The World Centre Building, 330 Senator Gil Puyat Avenue Makati 1209 City Philippines, Philippines</address>
                <phone>+63.2.8640.929</phone>
                <fax>+63.28640.932</fax>
                <email>enquiry.philippines@sartorius.com</email>
                <website>http://www.sartorius-mechatronics.com.ph</website>
            </subsidiary>
        </subsidiaries>
    </country>
<country>
        <countryname>Denmark</countryname>
        <subsidiaries>
            <subsidiary>
                <name>Sartorius Stedim Nordic A|S</name>
                <address>stedim Hoerskaetten 6d 2630 Taastrup, Denmark</address>
                <phone>+45.7023.4400</phone>
                <fax>+45.4630.4030</fax>
                <email>ne.customersupport@sartorius.com</email>
                <website></website>
            </subsidiary>
            <subsidiary>
                <name>Sartorius Nordic A|S</name>
                <address>Hoerskaetten 6D 2630 Taastrup, Denmark</address>
                <phone>+45.7023.4400</phone>
                <fax>+45.4630.4030</fax>
                <email>ne.customersupport@sartorius.com</email>
                <website></website>
            </subsidiary>
        </subsidiaries>
    </country>
</countries>

我只是创建 xml 的新手,我不知道我的 xml 是否好,我需要你的建议。谢谢!

4

1 回答 1

0

经http://validator.w3.org/验证,您的标记有效且格式正确

这里不是 100%,但我认为你写得<website></website>好像<website />你想写一样。。

于 2013-01-24T07:54:45.560 回答