【发布时间】:2015-04-21 18:43:36
【问题描述】:
我正在尝试为 Visual Studio 和 ModBuddy 创建一个 xsd 架构,以便更轻松、更用户友好地创建用于修改地球文明游戏的 xml 文件。我的问题是如何在文档中添加换行符/新行。
<?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Type" type="xs:string" minOccurs="1" maxOccurs="1" default="UNIT_PROTOTYPE">
<xs:annotation>
<xs:documentation>
[TYPE] Is a Unique Name for your Unit which is defined in the UnitClass Table. Example: UNIT_BERSERKER
</xs:documentation>
</xs:annotation>
</xs:element>
我尝试使用here 讨论过的简单换行符
但是它不起作用,换行符 没有出现在我的 xml 工具提示中,并且它没有返回该行来创建第二行。
所以我的问题是:如何在 xsd 架构文档中添加换行符?
路人
【问题讨论】:
-
你试过
<br />或<para> </para>吗? -
是的,我之前尝试过
,只是尝试了并重试了
,但它们什么也没做,但是它们都没有出现在 xml 中工具提示也可以作为文本,感谢您的建议...
标签: xml visual-studio xsd newline