如何在 Flex 中连接 RDF 文件(并使用其内容)?

发布于 2024-07-13 05:32:07 字数 163 浏览 6 评论 0原文

我正在使用 Flex 开发原型,我需要将我的应用程序连接到包含一些属性的 .RDF 文件。 我需要在 Actionscript 中创建的“描述符文件”中使用和操作这些属性。 所以我的问题是:如何将我的 Flex 应用程序连接到该 .RDF 文件? 谢谢,

问候

大卫

I'm working on a prototype in flex and I need to connect my application to an .RDF file that contains some properties. I need to use and manipulate those properties in a "descriptor file" made in Actionscript. So my question is: how do I connect my flex application to that .RDF file?
Thanks,

regards

David

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

口干舌燥 2024-07-20 05:32:07

如果 RDF 以 XML 形式表示(我猜这是最常见的),您可以简单地将其视为 XML 并使用内置的 XMLXMLList 类,以及相当方便的 E4X(ECMAScript for XML)语法来遍历您的文档。 要从服务器或其他远程位置加载 RDF 文件,请使用 URLLoader 类。

另一方面,如果 RDF 使用其他表示形式,您可能必须自己对明文进行解析。 (您仍然可以使用URLLoader)。

If RDF is represented in its XML form (which I guess is the most common anyway), you can simply treat it as XML and use the built-in XML and XMLList classes, and the rather convenient E4X (ECMAScript for XML) syntax to traverse your document. To load the RDF file from the server or from another remote location, use the URLLoader class.

If, on the other hand, the RDF uses some other representation, you'll probably have to do the parsing from plaintext yourself. (You can still use URLLoader).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文