久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

XML/XSD publicId 和 systemId 之間需要空格

XML/XSD White spaces are required between publicId and systemId(XML/XSD publicId 和 systemId 之間需要空格)
本文介紹了XML/XSD publicId 和 systemId 之間需要空格的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我在 Eclipse 中有一個包含大量 XML 文件的 PHP 項目.現(xiàn)在,我所有的 XML 文件都未通過驗證,并顯示以下錯誤消息:

I've got a PHP project in Eclipse with a lot of XML files. Right now, all my XML files are failing validation, with the following error message:

White spaces are required between publicId and systemId

我搜索了一下,publicId和systemId似乎與以DOCTYPE開頭的XML文件有關(guān).我的沒有.另一個 SO 張貼 表示將 XSD 添加到 Eclipse 中的 XML 目錄中,但這似乎沒有什么不同.

I've searched around, and publicId and systemId seem to be related to XML files that start with DOCTYPE. Mine don't. Another SO posting indicated to add the XSD to the XML catalog in Eclipse, but that doesn't seem to make a difference.

一個示例 XML 如下:

One sample XML is the following:

<?xml version="1.0" encoding="UTF-8"?>

<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                          http://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">

    <entity name="DoctrineTestsModelsCMSCmsAddress" table="cms_users">

        <named-native-queries>
            <named-native-query name="find-all" result-set-mapping="mapping-find-all">
                <query>SELECT id, country, city FROM cms_addresses</query>
            </named-native-query>

            <named-native-query name="find-by-id" result-class="CmsAddress">
                <query>SELECT * FROM cms_addresses WHERE id = ?</query>
            </named-native-query>

            <named-native-query name="count" result-set-mapping="mapping-count">
                <query>SELECT COUNT(*) AS count FROM cms_addresses</query>
            </named-native-query>
        </named-native-queries>

        <sql-result-set-mappings>
            <sql-result-set-mapping name="mapping-find-all">
                <entity-result entity-class="CmsAddress">
                    <field-result name="id" column="id"/>
                    <field-result name="city" column="city"/>
                    <field-result name="country" column="country"/>
                </entity-result>
            </sql-result-set-mapping>

            <sql-result-set-mapping name="mapping-without-fields">
                <entity-result entity-class="CmsAddress"/>
            </sql-result-set-mapping>

            <sql-result-set-mapping name="mapping-count">
                <column-result name="count"/>
            </sql-result-set-mapping>
        </sql-result-set-mappings>

        <id name="id" type="integer" column="id">
            <generator strategy="AUTO"/>
        </id>

        <field name="country" column="country" type="string" length="50"/>
        <field name="city" column="city" type="string" length="50"/>
        <field name="zip" column="zip" type="string" length="50"/>

        <one-to-one field="user" target-entity="CmsUser" inversed-by="address">
            <join-column referenced-column-name="id" />
        </one-to-one>

    </entity>
</doctrine-mapping>

我對接下來要嘗試什么感到有些困惑.我可以禁用 XML 驗證,但我討厭這樣做來解決 Eclipse 中的錯誤.如果它有任何區(qū)別,我正在使用帶有 PDT 的 Eclipse 3.7.失敗的 XML 文件都是庫的一部分,所以我認為它必須是 Eclipse 配置細節(jié),必須修改/糾正才能解決問題,但我不知道是什么.

I'm a bit stumped at what to try next. I can disable XML validation, but I hate doing things like that to resolve errors in Eclipse. If it makes any difference, I'm using Eclipse 3.7 with PDT. The XML files that fail are all part of libraries so I presume it must be an Eclipse configuration detail that had to be modified/rectified to resolve the issue, but I have no idea what.

有什么建議可以嘗試驗證我的 XML 文件嗎?

Any suggestions what I can try to have my XML files validate?

推薦答案

基本上順序應(yīng)該是這樣的--property 后跟property.xsd

Basically, the order should be like this - property and then followed by property.xsd

xsi:schemaLocation="
       http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/security
       http://www.springframework.org/schema/security/spring-security-3.2.xsd
       http://www.springframework.org/schema/context
       http://www.springframework.org/schema/context/spring-context.xsd
       http://www.springframework.org/schema/mvc 
       http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd">

這篇關(guān)于XML/XSD publicId 和 systemId 之間需要空格的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Developing PHP with Eclipse on a remote server (FTP) on Windows(在 Windows 上的遠程服務(wù)器 (FTP) 上使用 Eclipse 開發(fā) PHP)
How to synchronize files over FTP with Eclipse RSE?(如何通過 FTP 與 Eclipse RSE 同步文件?)
ColdFusion 9 line debugger for eclipse(Eclipse 的 ColdFusion 9 行調(diào)試器)
Line Debugging in ColdFusion 11 with CFEclipse(使用 CFEclipse 在 ColdFusion 11 中進行線路調(diào)試)
Force next word to a new line if the word is too long for the textview(如果單詞對于 textview 來說太長,則強制下一個單詞換行)
How to create simple Android TextView and display text on it using java code?(如何使用 java 代碼創(chuàng)建簡單的 Android TextView 并在其上顯示文本?)
主站蜘蛛池模板: 亚洲人久久 | 天天噜天天干 | 久久一及片 | 国产精品视频在线播放 | 在线观看成人小视频 | 夜夜骑首页 | 国产精品自拍视频 | 中文字幕视频在线 | 日本小电影网站 | 国产一区二区在线播放 | 激情五月婷婷综合 | 国产精品美女久久久久久久久久久 | 欧美性a视频 | 超碰操 | 激情一区二区三区 | 宅男噜噜噜66一区二区 | 欧美一区二区精品 | 国产福利91精品一区二区三区 | xxx视频| 久久久久国产成人精品亚洲午夜 | 日本五月婷婷 | 国产一区二区视频免费在线观看 | 欧美a区 | 天天看天天爽 | 国产免费国产 | 日韩电影一区 | 国产综合视频 | 天堂精品 | 在线视频国产一区 | 欧美成视频 | 久久久精品网 | 在线中文字幕av | 久久蜜桃av一区二区天堂 | 久久久高清 | 岛国视频| 超碰在线免费av | 国产专区在线 | 精品国产一区二区国模嫣然 | 亚洲午夜精品 | 99视频在线免费观看 | 亚洲欧美一区二区三区国产精品 |