提交 66e84b71 编写于 作者: L liuhui

fix: change buidlXML to buildXML

Signed-off-by: Nliuhui <liuhui@ohos.com.cn>
上级 80db5b26
......@@ -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.
先完成此消息的编辑!
想要评论请 注册