MTMD-又是小明小惠小萍網站 Logo
小明之友: Guest ; 群組: Guest
sun 今日上站: 2,552 ( 昨日上站:14,661rain 總上站數: 20,513,416
整點 [ 4 ] 連線: 345
目前逗留的有
文章搜尋 關於MTMD-又是小明小惠小萍網站 返回 [ MTMD-又是小明小惠小萍網站 ]主頁 互動訪客留言板
系統時間: 西元 2010 年 8 月 1日 04 點 34 分 35 秒  
訂閱 RSS
MTMD-又是小明小惠小萍網站 的留言板

folder MTMD-又是小明小惠小萍網站
folder 科技新知
│├folder Linux 新知
││└folder_move [技術]What is PXP
回覆主題前請先登入 發表新主題前請先登入
Go Previous [安全]網路安全新聞 : OpenWebMail 安全漏洞 :: Go Top :: [新知]Fedora Core 4 延後發佈 Go Next
[技術]What is PXP
├[ post: 2005-06-03 10:34:47 ] [ Read 1872 times now!! ]
└[ 小明冷涼卡好 ; 發表文章: 3909 篇 ; 註冊日期: 2002-12-25 ]
his90-TWShip.png

內容顯示: ( 圖文顯示模式:一般模式 )
相關網站:按我連結喔!

PXP
In October, 1999, I started writing a validating XML parser for O"2;Caml; the first published versions have been called "Markup" (simply because the package name was "markup"). After this parser had some success, I decided to revise the whole code, and to redesign the parser where it was needed. The result of this work is PXP, the Polymorphic XML Parser. The name reflects an important property of the parser, namely that the type of the XML nodes can be customized; a feature which is missing in most other XML parsers.

Now, one year later, I can announce the first stable version of PXP. "Stable" means mostly that the interface of the parser has become stable, i.e. future changes will extend but not break the current interface. The parser worked relatively well from the very beginning, and during the pre-release phase (several months) users reported only few bugs. I am now relatively sure that PXP is mature enough to be used in applications.

In general, the task of a XML parser is to read XML text, and to represent the text somehow in memory. There are several models for the data structures; for PXP I have chosen the luxury representation as object tree, in which every XML node is stored as two objects. One object contains the set of methods describing the fixed properties of every node; the other object is called the extension object and can be configured by the user of the parser.

The extension object is the polymorphic part of the representation. The type of the class may be arbitrary (except three base methods which connect the object to the tree), and the parser has a mechanism to dynamically select the class of the object depending on the element type of the XML node.

The other features of the parser simply implement the XML standard:

*

The XML instance is validated against the DTD; any violation of a validation constraint leads to the rejection of the instance. The validator has been carefully implemented, and conforms strictly to the standard. If needed, it is also possible to run the parser in a well-formedness mode.
*

If possible, the validator applies a deterministic finite automaton to validate the content models. This ensures that validation can always be performed in linear time. However, in the case that the content models are not deterministic, the parser uses a backtracking algorithm which can be much slower. - It is also possible to reject non-deterministic content models.
*

The parser can read XML text encoded in a variety of character sets. Independent of this, it is possible to choose the encoding of the internal representation of the tree nodes; the parser automatically converts the input text to this encoding. Currently, the parser supports UTF-8 and ISO-8859-1 as internal encodings.
*

The interface of the parser has been designed such that it is best integrated into the language O"2;Caml. The first goal was simplicity of usage which is achieved by many convenience methods and functions, and by allowing the user to select which parts of the XML text are actually represented in the tree. For example, it is possible to store processing instructions as tree nodes, but the parser can also be configured such that these instructions are put into hashtables. The information model is compatible with the requirements of XML-related standards such as XPath.

----------------------------------------------------------- Signature
好命去蹉跎!! 好命!! 好命!! 真好命~~~~
Back To Top ^
email home ipLogged
Link:
回覆主題前請先登入
Power By PHPPower By MySQL Valid HTML 4.01! Valid CSS!
PHP Writer Powered By Sean Chen ( 小明 )
© '02 - 2010, (lstar-MTMD-SYMing). All Rights Reserved. Version:1.2
最佳瀏覽環境 1024 × 768 ( 適用 Firefox, Opera, Safari, Google Chrome, IE )
Power By Apache Get Firefox!
How much time we take:0.11404299736023 ( Back To Top ^ )

free counters