【问题标题】:Eclipse's XML Editor Includes ns: PrefixEclipse 的 XML 编辑器包括 ns: Prefix
【发布时间】:2013-05-31 12:23:16
【问题描述】:

我正在使用 Eclipse 的 XML 编辑器来编辑一个 DocBook 文件。

我不想要<ns:,我只想要<callout

如何预防?

做了一些搜索,但是eclipse的文档真的很差。

【问题讨论】:

  • 要粘贴整个文件吗?编辑器不会自己组成前缀。

标签: xml eclipse xml-namespaces


【解决方案1】:

由于某种原因,该文件列出了两次架构,一次带有命名空间前缀。删除了第二个,现在可以使用。

<book xmlns="http://www.manning.com/schemas/book" xmlns:ns="http://www.manning.com/schemas/book"
    xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

谢谢。

【讨论】:

    猜你喜欢
    • 2012-03-05
    • 1970-01-01
    • 2023-04-11
    • 1970-01-01
    • 2011-07-26
    • 1970-01-01
    • 2011-12-04
    • 2011-03-05
    • 2012-03-14
    相关资源
    最近更新 更多