0

我正在写我的论文,这篇论文的主要目标是为 XML 语言设计和开发一个图形界面。

此应用程序的一些功能将是:

  • 以图形方式显示 XML
  • 添加/修改/删除一个孩子
  • 添加/修改/删除属性
  • 在同一窗口中浏览两个或多个文件并以图形方式交换数据,即以图形方式将一个子表单文件移动到文件
  • 在两个 XML 文件之间创建一个链接,然后将它们转换为两个 SQL Server 表

谁能帮助我如何开始,如何以图形方式显示 xml 树(GUI)?

4

1 回答 1

0

For showing the XML in a browser, you can use CSS - you can have a CSS (Cascading Style Sheet) file describing what font, size, color etc you'd like each element of the XML to have, and have the browser take it from there and display a more readable XML in the browser.

As far as reading all the children and their parents etc from the XML are concerned, you can try Python's xml.dom.minidom module. It parses the XML (provided it is valid) and provides easy access to the nodes of the XML tree.

于 2012-04-09T20:25:59.223 回答