Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-09-2013, 12:58 PM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 200
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
Reply With Quote
 

Tags
write , xml

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 06:09 AM.


Copyright © 1999-2023 Kinook Software, Inc.