Providers are the way that Axis allows plugging in new types of services, and the E4XProvider allows the user to specify an E4X script as the implementation of a service.
E4X 最主要的應用可能是把XML解析成易於*縱的ECMAScript對象。
提供者是這樣一種方式:Axis允許可*拔地*入新的服務提供者程序,而E4X 提供者允許用户使用E4X腳本實現服務。
Although there are risks normally, the E4X provider makes it very easy to deploy new scripts that might be used to write attacks.
兩種模型都有自身的優缺點,由於在E4X中擁有強大而易用的XML處理能力,因此我們可以輕鬆地使用這兩種模型。
儘管這樣還是有一定的風險,因為E4X提供者可以輕易的部署新腳本(甚至編寫包含攻擊型的代碼)。
E4X is probably used most often as a way to parse XML into ECMAScript objects that can be very easily manipulated.
In this article, you learned how to use E4X to implement a bubble sorting routine in the form of a game of Twenty Questions.
Both models have advantages and disadvantages, and because we have such powerful and simple XML handling capabilities in E4X, we can do both with ease.