摘要
随着网络的普及,XML在电子商务和数据交换中扮演了越来越重要的角色,而PHP则一直在动态网页的设计中得到广泛应用,两者的结合具有重要的意义。探讨了脚本语言PHP中对XML解析应用的支持,分析了PHP的XML解析器Expat的工作过程,同时提出直接利用扩展DOM类来完成XML文档操作。文中的实例结果也表现了PHP对XML应用支持的灵活性。
With the popularization of Internet, XML acts as a more and more important role on E- commerce and data exchange. However, PHP has been used widely in dynamic Web- page design in a long time. Their combination becomes significant now. Discussed the XML support in PHP, and analyzed the working of Expat- an XML parser in PHP. Then put forward the using of expand DOM class on XML- parse in PHP5. The example in this paper also shows the flexibility of PHP in XML application support.
出处
《计算机技术与发展》
2007年第7期57-59,共3页
Computer Technology and Development
基金
湖南省教育科学"十一五"规划课题(2006XJ150)