Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #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
  #2  
Old 10-09-2013, 01:46 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
You would need to call MSXML directly to insert multiple elements like that.
http://technet.microsoft.com/en-us/m...iptingguy.aspx
Reply With Quote
  #3  
Old 10-10-2013, 05:18 AM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 200
thanks a lot!
Reply With Quote
Reply

Tags
write , xml


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:14 AM.


Copyright © 1999-2023 Kinook Software, Inc.