XML 파일 처리를 위한 Dom4j 활용
1. XML 생성 및 저장
public static void createAndSaveXml(String filePath) {
try {
Document doc = DocumentHelper.createDocument();
Element rootElement = doc.addElement("Configuration");
addPortElement(rootElement, "혈압", "COM30");
addPortElement(rootElement, "체중", &qu ...
6월 8일 23:09에 게시됨