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

!4382 【OpenHarmony开源贡献者计划2022】fix: change buidlXML to buildXML

Merge pull request !4382 from rtos_ming/buidlXML
......@@ -1406,7 +1406,7 @@ The trustlist validation ensures that the user ID contains only letters, digits,
**\[Compliant Code Example]** (Using a Secure XML Library)
```java
public static void buidlXML(FileWriter writer, User user) throws IOException {
public static void buildXML(FileWriter writer, User user) throws IOException {
Document userDoc = DocumentHelper.createDocument();
Element userElem = userDoc.addElement("user");
Element idElem = userElem.addElement("id");
......
......@@ -1414,7 +1414,7 @@ private void createXMLStream(BufferedOutputStream outStream, User user)
**【正例】**(使用安全的XML库)
```java
public static void buidlXML(FileWriter writer, User user) throws IOException {
public static void buildXML(FileWriter writer, User user) throws IOException {
Document userDoc = DocumentHelper.createDocument();
Element userElem = userDoc.addElement("user");
Element idElem = userElem.addElement("id");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册