[Servingxml-help] pos file repeating sections to nested XML
Brought to you by:
danielaparker
From: Brewer, K. <ken...@pe...> - 2005-11-26 03:15:24
|
I'm new to serving xml, it's quite impressive, thanks! I'm trying convert a fixed width(positional) flat file, with repeating groups, to XML with nested elements. Can serving xml do this? I've made several attempts based on some of the examples but I still haven't been able to get the desired output. The flat file looks like this: JANEENGLCMATHA JOHNSCIEBHISTB and this is the XML output I'd like: <StudentGrades> <StudentGrade> <Name>JANE</Name> <SubjectGrade> <Subject>ENGL</Subject> <Grade>C</Grade> </SubjectGrade> <SubjectGrade> <Subject>MATH</Subject> <Grade>A</Grade> </SubjectGrade> </StudentGrade> <StudentGrade> <Name>JOHN</Name> <SubjectGrade> <Subject>SCIE</Subject> <Grade>B</Grade> </SubjectGrade> <SubjectGrade> <Subject>HIST</Subject> <Grade>B</Grade> </SubjectGrade> </StudentGrade> </StudentGrades> Thanks, -Ken **************************************************************************** This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. **************************************************************************** |