From e5e1b3a2bb51f6062eaa488a6ea7aaaa31e638e0 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 14 Jan 2024 16:35:22 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=91=E3=83=BC=E3=82=B5=E3=83=BC=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/utils/impl/XmlMetaParserImpl.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/utils/src/main/java/one/nem/lacerta/utils/impl/XmlMetaParserImpl.java b/utils/src/main/java/one/nem/lacerta/utils/impl/XmlMetaParserImpl.java index 7874a0b9..60263d68 100644 --- a/utils/src/main/java/one/nem/lacerta/utils/impl/XmlMetaParserImpl.java +++ b/utils/src/main/java/one/nem/lacerta/utils/impl/XmlMetaParserImpl.java @@ -32,10 +32,7 @@ public class XmlMetaParserImpl implements XmlMetaParser{ XmlMetaModel meta = new XmlMetaModel(); - meta.setTitle(rootElement.getElementsByTagName("title").item(0).getTextContent()); - meta.setAuthor(rootElement.getElementsByTagName("author").item(0).getTextContent()); - meta.setDescription(rootElement.getElementsByTagName("description").item(0).getTextContent()); - meta.setDefaultBranch(rootElement.getElementsByTagName("defaultBranch").item(0).getTextContent()); + meta.setRevisionId(rootElement.getElementsByTagName("revisionId").item(0).getTextContent()); ArrayList pages = new ArrayList<>(); for(int i = 0; i < rootElement.getElementsByTagName("pages").getLength(); i++) { @@ -64,10 +61,7 @@ public class XmlMetaParserImpl implements XmlMetaParser{ Element rootElement = document.createElement("meta"); - appendElement(document, rootElement, "title", meta.getTitle()); - appendElement(document, rootElement, "author", meta.getAuthor()); - appendElement(document, rootElement, "description", meta.getDescription()); - appendElement(document, rootElement, "defaultBranch", meta.getDefaultBranch()); + appendElement(document, rootElement, "revisionId", meta.getRevisionId()); Element pagesElement = document.createElement("pages"); for(XmlMetaPageModel page : meta.getPages()) {