[JAXB] Marshaller Properties...



JAXB로 XML을 마셜링 할 때 사용하는 프로퍼티들 입니다.


사용법은 아래와 같습니다.




JAXBContext jaxbInstance = JAXBContext.newInstance(MapPoint.class);



marshaller = jaxbInstance.createMarshaller();





marshaller.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");



marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);







프로퍼티들~ 마지막꺼는 해석이.. 잘 안되네요 ㅋㅋㅋ









댓글

가장 많이 본 글