<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    java learnging

    一塊探討JAVA的奧妙吧
    posts - 34, comments - 27, trackbacks - 0, articles - 22

    "Content is not allowed in prolog" error

    Posted on 2005-02-27 11:09 bigseal 閱讀(20999) 評論(7)  編輯  收藏

           看到一篇關于在eclipse中使用ant構建java項目的文章,就按照文章中的說明新建了一個項目,并新建了classes,dist,doc,lib幾個文件夾和build.xml文件。其中build.xml文件的內容也是直接復制的,由于是從網頁上直接復制的,里面“<”“>”都是中文格式的,我就把這些給替換了一下。
             但當選中項目,然后選擇“Project”,“Properties”,“Builders”,“New…”,選擇“Ant Build”:載入“Bulidfile”時提示“Content is not allowed in prolog”錯誤。    
             我就去Google上轉了一圈,還有點收獲,看了一篇小文章,覺得可能是build.xml文件格式的錯誤。

    In SGML and XML, a document is composed of two sequential parts,
    the prolog and the instance. You can see this in an HTML example:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN "
    2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " 
    >
    <html xmlns= "http://www.w3.org/1999/xhtml " >
    <head >
    <title >The Symbol Grounding Problem </title >
    </head >
    <body >
    </body >
    </html >

    In this example, the prolog is lines 1-2, the instance begins on
    line 3. The prolog includes the DOCTYPE declaration, the external
    subset (called the DTD), and the internal subset (which you seldom
    see but it 's legal). The document instance includes the document
    element (in this case 
    <html > and all of its descendent content).

    You generally don 't want to see the prolog, and you generally don 't
    want to store it. The DOCTYPE declaration provides references to
    DTD, which is instantiated as part of the process of validating the
    document. You may want to store the reference(s), but you wouldn 't
    want to store the DTD each time you store the document, as that
    would be a real waste (the DTD is often bigger than the document).

    It sounds like your well-formed and valid document isn 't being
    considered as such by the XML processor. The error message indicates
    that there is content (i.e., either elements or character data) in
    the part of the document considered as the prolog. You may be missing
    the last " > " on line 2 above, as that would normally be the beginning
    of the internal subset. If it found " 
    <html " (or something similar),
    you might get that error.
    果然,有兩個“!”是中文狀態,改過來就ok 了。

    Feedback

    # re: "Content is not allowed in prolog" error  回復  更多評論   

    2006-11-25 17:54 by jf
    謝謝

    # re: "Content is not allowed in prolog" error  回復  更多評論   

    2006-11-30 09:53 by Arcko
    受益
    感謝

    # re: "Content is not allowed in prolog" error[未登錄]  回復  更多評論   

    2007-01-31 12:09 by tim
    還看不懂你的意思,

    是中文編碼的"!"嗎,

    看你舉的例子,只有一個"!"。

    沒有兩個。

    奇怪!

    # re: "Content is not allowed in prolog" error  回復  更多評論   

    2011-05-06 16:20 by luokery
    對, 他的意思就是說,他的! 是中文的. 現在網頁上面表現的是正確的.

    # re: "Content is not allowed in prolog" error  回復  更多評論   

    2012-05-17 14:01 by s.
    把錯誤的行重新編寫,尤其是看不見的字符要刪除。

    # re: "Content is not allowed in prolog" error  回復  更多評論   

    2013-03-03 01:17 by TZH123456
    VALIDATE一下(文件上右鍵-VALIDATE)

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 国产国产人免费人成成免视频| 亚洲国产一区视频| 在线观看免费无码专区| 亚洲欧洲国产综合AV无码久久| 亚洲人午夜射精精品日韩| 成人午夜视频免费| 国产香蕉免费精品视频| 美女视频黄的免费视频网页| 一级毛片**免费看试看20分钟| 亚洲AV无码成人精品区狼人影院| 亚洲日本乱码一区二区在线二产线| 国产亚洲精品观看91在线| 亚洲精品视频在线看| 免费v片视频在线观看视频| 成年免费大片黄在线观看岛国| 久久不见久久见免费视频7| 美女被cao网站免费看在线看| 永久免费观看黄网站| 免费国产va视频永久在线观看| 亚洲欧美日韩一区二区三区| 亚洲国产成人九九综合| 亚洲精品成人久久| 亚洲性猛交xx乱| 亚洲国产日韩在线成人蜜芽| 亚洲精品在线免费观看视频| 久久久久亚洲精品无码蜜桃| 亚洲AV日韩AV永久无码绿巨人| 久久精品国产亚洲| 亚洲成年人在线观看| 亚洲男人天堂av| 亚洲日韩乱码中文无码蜜桃臀| 亚洲女人初试黑人巨高清| 亚洲人成网站在线观看播放青青| 亚洲欧洲日本国产| 亚洲永久在线观看| 亚洲爆乳无码精品AAA片蜜桃| 久久综合亚洲色hezyo| 一级毛片在线播放免费| a级片免费在线播放| 精品成人免费自拍视频| 久久精品一本到99热免费|