obj to xml
来源:互联网 发布:怎么获取淘宝客pid 编辑:程序博客网 时间:2024/04/29 01:56
/**
* 将一个Object对象转换成XML;
* @param obj 要转换的Object对象;
*/
public static function obj2xml(obj : Object) : XML {
var xml : String = "";
if(obj instanceof Object) {
for(var j:String in obj) {
if (obj[j] instanceof Array) {
for(var i : Number = 0;i < obj[j]["length"];i++) {
xml += "<" + j + ">" + obj2xml(obj[j][i]) + "</" + j + ">";
}
}else if (obj[j] instanceof Object) {
xml += "<" + j + ">" + obj2xml(obj[j]) + "</" + j + ">";
} else {
xml += "<" + j + ">" + obj[j] + "</" + j + ">";
}
}
} else {
xml = String(obj);
}
return new XML(xml);
}
- obj to xml
- Convert xml string to obj
- XStream 实现XML>Obj 和 obj>XML
- obj xml 互相转换
- obj转xml
- json to obj and obj to json in javascript
- Jaxb处理obj(泛型)<--->xml
- unity terrain export to obj
- OBJ2OPENGL Convert OBJ file to OpenGL format
- How to extract .obj from a .lib
- Unable to open file DESIGNWINDOWS.OBJ
- Unable to open file 'RM_CLASS.OBJ'
- obj
- Unable to copy from obj\debug to bin\debug
- Unable to copy from obj\debug to bin\debug
- xml和obj互转的库appliedxml
- 写了个XML结构体转OBJ的功能
- xml文件与obj的最简单转换
- ActivityGroup
- 汇编求两个数的绝对值
- VC++动态链接库(DLL)编程深入浅出(三)
- break VS 平衡树
- alpha
- obj to xml
- VC++动态链接库(DLL)编程深入浅出(四)
- 如何在Flex 4 中使用新的CSS语法
- Mono团队自立创业 .NET入侵苹果平台
- OpenGL的位图和图像
- Linux 一些配置
- 自定义对话框使用静态Handler传递参数
- cbo.js
- action