Sunday, 28 December 2014

generate xml from structured text file in java



i have several text files containing text in this format



DEF LOCA_MISSL T6.2
LOCA_MISSL = 0
SI HJOU_DATE <= TEMP_DATJOU
SI HJOU_INMISS <> "0"
PLAGE "DJ"
SI TEMP_TYPPLA <> " "
LOCA_DEJDEB = TEMP_VALTRT1
LOCA_DEJFIN = TEMP_VALTRT2
FINSI
FINSI
FINSI


i want to generate an xml file from the text using java. is there any framework (SAX ??) that can help me do this, i already started coding this without any framework but it's too complicated especially when it come to using XML References.


No comments:

Post a Comment