摘要
XML具有简洁有效,易学易用,高效可扩充和很好的灵活性,使得其在项目中得到广泛运用,本文以XML为基础,采用REST风格来设计API,利用XPath进行建模来解析XML,进行分发设计,通过脚本配置进行管理,将以上技术根据实际项目需要结合运用起来。该方法通过项目实践检验,可以将解析过程结构化,减少了代码编写量,简化了程序开发过程,方便了对代码的调试与测试,将流程选择与业务实现隔离,使整个项目更利于管理。
XML has many features,such as sententiousness,easy to learn and use,expansibility and agility.This paper is based on XML,develops Rest API,uses XPath to analyse XML,designs distribute flow,uses script to deal with all conditions.After put all technology into practice,i find this flow can reduce coding,very easy to develop and test,separate the flow and business.This way is simple and high efficiency.
出处
《微计算机信息》
2010年第9期166-167,170,共3页
Control & Automation