摘要
网络虚拟实验中二进制数据的XML直接传输方法存在节点数目多,解析困难,不利于网络传输等问题。针对上述情况,采用XML的CDATA域封装的方法对二进制数据进行传输。为了解决由ASCII字符引起的语法错误以及CDATA域的异常结束问题,通过Base 64编码技术对二进制数据进行处理。通过一个虚实结合的球杆系统网络虚拟实验对上述方法进行了验证。
There exsit many problems in the XML transmission method for binary data in web-based virtual experiments, such as the large number of the nodes, the complexity of the XML parsing and the burden of web transmission. This paper introduces a solution which uses the CDATA session to transfer the binary data. A Base 64 coding technique is adopted to avoid the syntax errors or unexpected endings caused by some ASCII characters,when using the CDATA session. A web- based virtual experiment for ball & beam controlling system has been given to illustrate the validity of this method.
出处
《实验室研究与探索》
CAS
北大核心
2011年第11期52-55,共4页
Research and Exploration In Laboratory
基金
"十一五"国家科技支撑计划项目(2008BAH29B00)
国家863计划项目(2008AA04Z133)