如何使用 xml - 工具创建文档?建议?
我想使用标准 xml 创建文档。我希望远离 Microsoft Word,但能够使用 xml 创建文档和过程。我实际上尝试用 Word 创建一些简单的东西只是为了测试然后将其另存为 xml。保存的信息量是荒谬的。我想要更简单的东西,这样我就可以仅使用 Notepad++ 或类似工具返回并编辑文件。使用Word创建的xml文件,结构非常复杂,以至于我在使用Word时陷入困境。 有可用的工具可以帮助我做到这一点吗?
我目前正在做以下事情:
<?xml version="1.0" encoding="utf-8"?>
<books>
<title name="Sample document">
<author>Insert Author</author>
<chapter name="Title of the chapter one">
<content></content>
</chapter>
</title>
</books>
我只是边走边补字段,但如果有一个工具可以自动执行此操作,那么它将节省我很多时间并且..我不想重新发明轮子。
欢迎提出建议。
谢谢 托尼
I would like to create documentation using standard xml. I would like to stay away from Microsoft Word but be able to create documents and procedures using xml. I actually tried to create something simple with Word just to test and then saving it as xml. The amount of information saved is ridiculous. I want something much simpler and that allows me to go back and edit the files using just Notepad++ or similar. With an xml file created by Word, the structure is so complex that I am stuck using Word.
Are there tools available that can help me do that?
I am currently doing the following:
<?xml version="1.0" encoding="utf-8"?>
<books>
<title name="Sample document">
<author>Insert Author</author>
<chapter name="Title of the chapter one">
<content></content>
</chapter>
</title>
</books>
I am just making up the fields as I go but if there is a tool that can automatically do that, it would save me a lot of time and.. I don't want to reinvent the wheel.
Suggestions are appreciated.
Thanks
Tony
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这并不是一个真正的编程问题,但请看一下 DocBook。您可以按原样使用 DocBook 模式/DTD,也可以将它们用作基础并进行修改以满足您的需求。
我还建议使用 XML 编辑器。 oXygen 内置了对 DocBook 的支持。
**编辑**
几乎忘记了 DITA 。 (另请参阅 http://dita.xml.org/)
Not really a programming question, but take a look at DocBook. You can either use the DocBook Schemas/DTDs as-is or use them for a base and modify to fit your needs.
I would also suggest using an XML editor. oXygen has built in support for DocBook.
**EDIT**
Almost forgot about DITA. (Also see http://dita.xml.org/)
我相信它仍在开发中,我只是粗略地看了它,但 Jquery-docs 是 Jquery 项目正在使用的文档,并且它是基于 XML 的: https://github.com/jquery/jquery-docs
I believe it is still in development and I have only looked at it superficially, but Jquery-docs is what the Jquery project is working on using for documentation, and it is XML based: https://github.com/jquery/jquery-docs