【问题标题】:not well formed,XML parsing格式不正确,XML解析
【发布时间】:2019-01-10 14:12:07
【问题描述】:

这个文件是另一个更大的 HTMl 文件的 sn-p,当我打开文件时,这个 sn-p 不起作用。

<!DOCTYPE html>
<html>
    <div class="jumbotron">
        <img src="images/barsmall.jpg" alt="Pictures of Bar" class="img-responsive visible-xs"> </img>
    </div>

    <div id="tiles" class="row">
        <div class="col-md-4 col-sm-6 col-xs-12">
            <a href="Pages/Drinks.html">
                <div id="Drinks-tile"><span>Drinks</span></div>
            </a>
        </div>
        <div class="col-md-4 col-sm-6 col-xs-12">
            <a href="Pages/Menu.html">
                <div id="Menu-tile">
                    <span>Menu</span></div>
            </a>
        </div>
        <div class="col-md-4 col-sm-12 col-xs-12">
            <a href="https://goo.gl/maps/x5whuKnRtfo" target="_blank">
                <div id="Map-tile">
                    <iframe src="https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d3559.9186024104656!2d75.56460250705483!3d26.84254113903228!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2sin!4v1538254945957" width="100%" height="250" frameborder="0" style="border:0" allowfullscreen></iframe><span>Map</span>
                </div>
            </a>
        </div>          
    </div>
</html>

它在第 22 行即以标签 iframe 开头的行中表示它们是错误(XML 解析错误:格式不正确)。

请帮忙。

【问题讨论】:

    标签: xml parsing


    【解决方案1】:

    iframe 元素具有格式错误的属性 allowfullscreen。 (没有价值。)

    添加一个值来修复它:allowfullscreen=""

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多