XPP suffers from requiring more steps for parsing and writing text documents, and for working with namespaces.
XPP在语法分析和编写文本文档时需要更多步骤,并且在处理名称空间时也需要更多步骤。
If XPP were to add some convenience methods to handle some of these common cases it'd probably come out much better in the comparison.
如果XPP打算添加一些便利的方法来处理其中一些常见情况,那么在对比中它可能会更胜一筹。
The top-level code for XPP (in Listing 10) is the longest of the examples, with considerably more setup required than the other models.
XPP的顶级代码(在清单10中)是所有示例中最长的一个,与其它模型相比,它需要相当多的设置。
The XPP modify method in Listing 11 is most similar to the JDOM approach, though it requires more code to create a new element (lines 13-21).
清单11中xppmodify方法尽管需要更多代码来创建新元素(第13 - 21行),但它与JDOM方法最类似。
The output handling (lines 11-16) also involves more steps than for the other models, mainly because XPP requires a Writer rather than accepting a Stream directly as an output target.
输出处理(第 11-16 行)也涉及比其它模型更多的步骤,主要因为XPP需要Writer而不是直接将 Stream作为输出目标接受。
The output handling (lines 11-16) also involves more steps than for the other models, mainly because XPP requires a Writer rather than accepting a Stream directly as an output target.
输出处理(第 11-16 行)也涉及比其它模型更多的步骤,主要因为XPP需要Writer而不是直接将 Stream作为输出目标接受。
应用推荐