An XML parser can parse any XML document, but it still needs a model to perform validation.
xml解析器可以解析任何XML文档,但它仍然需要模型来执行验证。
Using the XML parser available to iOS developers you can parse the XML returned from messages.php.
使用对iOS开发人员可用的xml解析器,您可以解析从messages . php返回的XML。
XML is the opposite -- it contains embedded structural information that enables an XML parser to parse any XML document without using a model.
XML则相反——它包含嵌入的结构信息,使得 XML解析器无需使用模型即可解析任何 XML文档。
This usually resembles Listing 4 in code, which shows a simple XML parse, using a command-line argument as the filename of the XML document to parse.
这些代码通常与清单4类似,其中展示了一个简单的XML解析,使用命令行参数作为要解析的 XML文档的文件名。
The XML parser will parse the script as an XML document unless you enclose your script in a CDATA block. Therefore, a JavaScript element would now look like this.
xml解析器将脚本解析成XML文档,除非您将脚本封装入cdata块中。
If the media types are described using an XML schema, grab that schema and generate classes that can parse or generate XML.
如果媒体类型是用XML模式描述的,那么就获取这个模式,生成能够解析或者生成xml的类。
And if you send it with an XML MIME type, user agents will parse it as an XML document too.
如果你把它跟XMLMIME类型一并发送出去的话,用户代也会把它作为XML文档来进行解析。
I'm certain to be vilified by some engineers for even mentioning this approach, but you can parse XML with regular expressions.
可以肯定,即使提到这个方法,有些工程师也会批评我,但是确实可以用正则表达式解析xml。
Two samples will be demonstrated to show how to parse XML document into tabular data.
本文将演示两个示例,以展示如何将XML文档解析为表数据。
To parse XML safely, ensuring that you protect code that looks for tags or attributes that it might not find and that it fails gracefully, is a lot of work.
为了安全地解析XML,我们一定要对那些可能查找不到标签或属性的代码进行正确的错误处理,这需要很大的工作量。
It would be nice to be able to parse the XML efficiently, but with a more intuitive programming model.
如果能够高效地解析xml而且可以使用更直观的编程模型那就太好了。
Now, load this XML file and parse through the tree using REXML.
现在,加载这个XML文件并使用REXML解析文件树。
The parsing stage might be considered the most complicated, as it requires a somewhat recursive design to parse the XML tree.
解析阶段可能是最复杂的,因为它需要一定程度的递归设计来解析xml树。
Unfortunately, the downside of transferring XML data is that it takes some time for the browser to parse through the XML document.
遗憾的是,传递XML数据的缺点是需要浏览器多花费一些时间来解析整个XML文档。
This can be used to read and parse XML documents.
这个库可以用于读取和解析xml文档。
It is used to parse either XML or text on the client — in this case to parse the string returned from the server.
该对象用于在客户机上解析xml或文本,在这个例子中是解析从服务器返回的字符串。
This feature is valuable when you need to parse XML files over 1 GB; you have only a small set of files and an abundance of processors.
当您需要解析超过1GB 的XML文件时,该功能很有价值;您只有一小部分文件而有许多处理器。
You saw the use of the DOM to parse XML in several earlier articles, and will see how JSON provides yet another option to parse XML in a future article.
在本系列前几期的文章中,您已经看到了利用DOM来解析XML,在后续的文章中,还会看到JSON怎样提供了解析 XML 的另一种选择。
Because it is using a model to parse XML, it provides extra functionality beyond the generic XML domains.
由于使用模型来解析xml,它提供了超出通用xml域的额外功能。
This section explains how to parse an XML document.
本节介绍如何解析XML文档。
The results are pretty straightforward, so take a look at how to parse this XML.
结果十分简单,因此来看一看如何解析这个XML。
You already have the code to start up the view, get the message XML, parse it, and display the messages.
您已经完成了启动视图、获得消息XML、解析消息和显示消息的代码。
The code must parse the XML response.
使用的代码必须能够解析XML响应。
The two basic means to parse XML are: tree and stream.
解析XML有两种基本的方式:树和流。
I don't know of any E-mail clients that parse incoming messages as XML, but many systems receive and parse XML documents accepted from a variety of sources.
我没听说过任何将传入信息解析为XML文档的电子邮件客户端,但许多系统都接受并解析各种来源的XML文档。
It can be used to tree parse and stream parse XML data.
可以使用它对XML数据进行树解析和流解析。
It's not hard to find some XML to parse.
找到一些XML来解析并不难。
You use the same agent to parse the XML and to create and send mail.
您将使用同一代理解析xml,以创建和发送邮件。
In this article, learn to create and parse an XML document on an Android device.
在本文中,您可以学习如何在Android设备上创建和解析xml文档。
Finally, you can call validate , again passing in a Source implementation — this time representing the XML to parse and validate.
最后可以调用validate并再次传递Source实现,不过这一次它代表要解析和验证的XML。
应用推荐