如何在Adobe Air Application中显示XML数据(从PHP中提取)?

时间:2022-10-25 19:58:11

I would like to create a small Adobe Air application which would extract XML data from my site and display it in my Adobe air application.

我想创建一个小型Adobe Air应用程序,它将从我的站点中提取XML数据并将其显示在我的Adobe Air应用程序中。

I have the xml part setup, when i run the xml file, it displays the results in the browser. Now what i need is to display the same results in my adobe air application.

我有xml部件设置,当我运行xml文件时,它在浏览器中显示结果。现在我需要的是在我的adobe air应用程序中显示相同的结果。

For e.g. I have a simple form

对于例如我有一个简单的表格

<form name="review" action="admin_xml.php" method="post">
<textarea name="xml" cols="40" rows="10"></textarea>    
<input class="submit" type="submit" value="Submit Request">
</form>

I enter the following XML data into the form.

我在表单中输入以下XML数据。

<?xml version="1.0" encoding="UTF-8"?>
<GetOrdersIds version="1.0">
    <Credentials>
        <Username>my_user</Username>
        <Password>my_pass</Password>
    </Credentials>
    <Criterions>
        <OrderNumber></OrderNumber>
        <NameEmail></NameEmail>
        <Keyword></Keyword>
        <StartDate>2009-01-01</StartDate>
        <EndDate></EndDate>
        <OrderStatus></OrderStatus>
        <ShipToCountry></ShipToCountry>
        <ShipToState></ShipToState>
        <CreditCardType></CreditCardType>
    </Criterions>
</GetOrdersIds>

When i submit the form, i get all the order id's from 2009-01-01 till date and it get displayed in the browser.

当我提交表格时,我会从2009-01-01到日期获得所有订单ID,并在浏览器中显示。

Is there a way to run that HTML form in an adobe air application such that I enter the XML element values it should go through the admin_xml.php file and get the results. I dont want to enter the XML Skeleton again and again. I only want to able to enter the values for those elements.

有没有办法在adobe air应用程序中运行该HTML表单,以便我输入应该通过admin_xml.php文件的XML元素值并获得结果。我不想一次又一次地进入XML Skeleton。我只想输入这些元素的值。

Are there any tutorials or books which deal with this topic ?

是否有任何教程或书籍可以处理这个主题?

1 个解决方案

#1


Building an XML viewer on AIR with Flex describes how to build an application that "translates" a specific xml format to a specific display format.

在AIR with Flex上构建XML查看器描述了如何构建将特定xml格式“转换”为特定显示格式的应用程序。

Using AIR for XSLT Processing describes how you can utilize the xslt processor and built-in html engine.

使用AIR for XSLT Processing描述了如何使用xslt处理器和内置html引擎。

#1


Building an XML viewer on AIR with Flex describes how to build an application that "translates" a specific xml format to a specific display format.

在AIR with Flex上构建XML查看器描述了如何构建将特定xml格式“转换”为特定显示格式的应用程序。

Using AIR for XSLT Processing describes how you can utilize the xslt processor and built-in html engine.

使用AIR for XSLT Processing描述了如何使用xslt处理器和内置html引擎。