XML is a common encoding form of models, and XML is often used to represent models in XWorker.
For example, the following XML is a model.
<?xml version="1.0" encoding="utf-8"?> <Shell name="shell" text="Hello World!" descriptors="xworker.swt.widgets.Shell" width="800" height="600"> <FillLayout name="FillLayout"></FillLayout> <Browser name="Browser" url="https://www.xworker.org"></Browser> </Shell>
In XML, each node is a separate model. For example, in the XML above, there are three separate models.
We usually use an object-oriented approach to working with models, so models are also seen as objects.
Copyright © 2007-2019 XWorker.org 版权所有 沪ICP备08000575号