You will then see how to store the data for the application in an XML file.
接下来,您将看到如何为应用程序将数据储存在XML文件中。
So why put the extra effort into storing the data in an XML file first?
那么,为何还要额外花费力气先将数据存储到一个XML 文件中呢?
You play the play with two files: an XML data file that contains the play itself and a producer script in PHP.
播放带有两个文件的剧本:一个XML数据文件(包含剧本本身)和一个用PHP编写的制作器脚本。
This code reads data from the XML file shown in Listing 9 and formats it into a table.
这段代码从清单9所示的XML文件中读取数据,然后将它变为表格格式。
So, when you load that next XML file or data stream, have no fear about navigating to the exact values that you need to process.
所以,当您加载下一个XML文件或数据流时,无需担心,您可以一直导航,直到获得您需要处理的下一个具体的值。
What if your application needs to store data to an XML file?
如果应用程序需要将数据存储到XML文件中怎么办?
XML is a convenient data format because each of their systems can export current data to an XML file that is available in the cloud.
XML是一种方便的数据格式,因为他们各自的系统都可以将当前数据导出到云中可用的 XML文件。
For maximum portability, we recommend transforming the DXL document to an XML file that can describe your data more effectively.
为了获得最大的可移植性,我们建议将DXL文档转换为可以更有效地描述数据的XML文件。
This file must be parsed to extract the XML data.
必须对该文件进行解析以提取XML数据。
As an added benefit, moving the test data into the non-code artifact of an XML file means that non-programmers can also specify data.
这样做的一个额外的好处是:将测试数据移动到XML文件的无代码工件就意味着非程序员也可以指定数据。
Listing 1 shows an example of the XML data file.
清单1显示了一个示例XML数据文件。
Figure 3 shows a skimmed-down example of the XML data found inside a resource file.
图3展示了在一个资源文件中XML数据的一个缩减样本的示例。
And before searching for data within a XML file, programmers must first open and parse the file.
在XML文件内搜索数据之前,程序员必须先打开和解析该文件。
In this XML data file, the root element is.
在这个XML数据文件中,根元素是。
To make changes to the XML files, because both the data file and the stylesheet are pure XML, use your favorite XML or text editor.
要修改XML文件,由于数据文件和样式表都是纯xml,因此您可以使用您钟爱的XML或文本编辑器。
Consider Figure 1. Two things happen: First the application writes data in an XML file and then the XSLT processor, which is another application, styles the data in HTML.
请考虑图1。其中发生了两件事:首先应用程序将数据写入XML文件,然后XSLT处理器(另一个应用程序)将数据整理成html格式。
The XML file specifies the widget resources, data, events, and HTML markup mode.
该XML文件指定了小部件的资源、数据、事件与HTML标记模式。
Creating an XML data file with the instance's Settings, such as network hostname, IP address, and so on.
使用该实例的设置,如网络主机名、IP地址等等,创建一个XML数据文件。
When you load an XML file as your data instance, you might not have control over the XML; the data might be provided by a database or some other application.
加载XML文件作为数据实例时,有可能无法控制 XML;数据也许是数据库或者其他某个应用程序提供的。
To make it easier on yourself, store the data in an XML file as in Listing 2.
为了让工作更轻松,将数据存储在清单2那样的XML文件中。
Listing 5 shows a simple DHTML-based slide show that sources its data from an XML file.
清单5显示了一个简单的基于DHTML的幻灯片,数据来自XML文件。
It provides step-by-step instructions for reading business data from a flat file, transforming this data into XML, and populating a data warehouse with the transformed data.
分步讲解了如何从平面文件读取业务数据,将此数据转换成XML并用转换后的数据填充数据仓库。
Note once again you'll create some test data in an XML file.
同样注意,要在XML文件中创建一些测试数据。
Then, I use XSL to format the XML into a simple HTML file that demonstrates what data are in the XML file.
然后,再使用XSL把这个XML文件格式化成一个简单的HTML文件。该HTML文件展示了XML文件所包含的数据。
In any case, you can see the ease with which an XML data file is created.
无论何种情况,可以看到XML数据文件的创建非常简单。
Recall from the XSD file that you also generated optional XML data.
回忆一下同时生成可选XML数据的XSD文件。
All we need to do now is to repeat our extraction process over and over again, merging the results into a single XML data file.
现在,我们需要做的是反复执行抽取过程,把结果合并到单个XML数据文件中。
Again you are loading this data from an XML file.
同样,您是从XML文件加载数据。
This simple example loads data from an XML file into an SDO data graph, prints and updates the data, then writes it back to a file.
这个简单的例子将数据从XML文件加载到SDO数据图,打印并更新数据,然后将它写回文件。
Say, you parse a database or an XML file and generate data classes. Tens of classes, hundreds of properties, all fairly generic, boilerplate stuff.
假设你解析一个数据库或者一个XML文件,然后生成了数据类,结果你会发现有数十个类、几百个属性以及一大堆泛型和模板文件等。
应用推荐