#1
|
|||
|
|||
Write elements into XML
Hi
I have a list of elements -like {Accounting.Iface;Accounting.Service} which are read one by one in a loop step (separator is ; ) and then I need to write every element in a XML file like below(ModuleMask value is the current element): <Filters> <IncludeFilters> <FilterEntry> <ModuleMask>Accounting.Iface</ModuleMask> <ClassMask>*</ClassMask> <FunctionMask>*</FunctionMask> </FilterEntry> <FilterEntry> <ModuleMask>Accounting.Service</ModuleMask> <ClassMask>*</ClassMask> <FunctionMask>*</FunctionMask> </FilterEntry> </IncludeFilters> I tried to use the WriteXml step but problem is the final result is <Filters> <IncludeFilters> <FilterEntry> <ModuleMask>Accounting.Service</ModuleMask> <ClassMask>*</ClassMask> <FunctionMask>*</FunctionMask> </FilterEntry> </IncludeFilters> so the ModuleMask element is updated but not added again with a new value Any idea how can I make it to add a new FilterEntry for each element in the loop? I activated the options "Create element\attribute if it does not exist" and "Update all matching nodes" but it does not help |
Tags |
write , xml |
|
|