Lines Matching refs:xml
1 # @ohos.convertxml (xml转换JavaScript)
3 本模块提供转换xml文本为JavaScript对象的功能。
20 fastConvertToJSObject(xml: string, options?: ConvertOptions) : Object
22 转换xml文本为JavaScript对象。
36 | xml | string | 是 | xml文本,若包含“&”字符,请使用实体引用“\&”替换。|
52 | 10200002 | Invalid xml string. |
58 let xml =
59 '<?xml version="1.0" encoding="utf-8"?>' +
72 let result = JSON.stringify(conv.fastConvertToJSObject(xml, options));
83 convertToJSObject(xml: string, options?: ConvertOptions) : Object
85 转换xml文本为JavaScript对象。
99 | xml | string | 是 | 传入的xml文本,若包含“&”字符,请使用实体引用“\&”替换。|
115 | 10200002 | Invalid xml string. |
121 let xml =
122 '<?xml version="1.0" encoding="utf-8"?>' +
136 let result = JSON.stringify(conv.convertToJSObject(xml, options));
147 convert(xml: string, options?: ConvertOptions) : Object
149 转换xml文本为JavaScript对象。
161 | xml | string | 是 | 传入的xml文本。 |
173 let xml =
174 '<?xml version="1.0" encoding="utf-8"?>' +
186 let result = JSON.stringify(conv.convert(xml, options));
203 | ignoreDeclaration | boolean | 否 | 是否忽略xml写入声明指示,默认false。 |
204 | ignoreInstruction | boolean | 否 | 是否忽略xml的写入处理指令,默认false。 |