未验证 提交 0e2d67fe 编写于 作者: O openharmony_ci 提交者: Gitee

!11338 Example of modifying XML

Merge pull request !11338 from 小马奔腾/master
......@@ -59,7 +59,9 @@ Sets an attribute.
let arrayBuffer = new ArrayBuffer(1024);
let bufView = new DataView(arrayBuffer);
let thatSer = new xml.XmlSerializer(bufView);
thatSer.startElement("note");
thatSer.setAttributes("importance", "high");
thatSer.endElement();
```
......
......@@ -58,7 +58,9 @@ setAttributes(name: string, value: string): void
let arrayBuffer = new ArrayBuffer(1024);
let bufView = new DataView(arrayBuffer);
let thatSer = new xml.XmlSerializer(bufView);
thatSer.startElement("note");
thatSer.setAttributes("importance", "high");
thatSer.endElement();
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册