====== [적용 예] XML Manipulation ======
===== 개요 =====
[[egovframework:rte:fdl:xml_manipulation|XML Manipulation]] Service 를 적용해서 **[[http://www.w3.org/DOM/|DOM(Document Object Model)]]** 으로 XML문서로 되어 있는 사용자 등록 정보를 읽어 Element 를 변경한다.
===== 설명 =====
==== Configuration ====
=== resources\spring\context-common.xml ===
=== resources\spring\egovxmlCfg.xml ===
=== resources\spring\egovxml.properties ===
egovxmlsaved.path=C:\\Temp\\
==== Source ====
=== egovframework\rte\cvpl\web\EgovCvplUserController.java ===
/** XML Manipulation */
@Resource(name = "domconcreteCont")
EgovConcreteDOMFactory domconcrete;
List sobject = new ArrayList();
SAXBuilder builder = new SAXBuilder();
Document doc = builder.build(new File(propertiesService.getString("marshallingDir") + "cvplUserMarshalling.xml"));
domconcrete.CreateDOMValidator().updElement(doc, "user-name", "userName", null);