Thank you very much!
|
Another thing appeared-in the last sample transform4.bld,one extra requirement appeared->how can I query only path nodes containing string :
sources/trunk/Exchange ? (still they should be shown only once ) |
1 Attachment(s)
Attached.
|
Thanks.Is there any documentation somewhere about this kind of syntax you use for reading XML nodes?
I would like to avoid to bother you in case some other changes would be needed... |
|
1 Attachment(s)
Hi
I have another issue now,I studied the link u provided and I thought I implemented the XML step correctly but it seems I made a mistake. I have an XML file contaiing a list of SVN changes. I need to create a list with all the files changed for a specific string appearing in For example –I need to get a list with all the files changed for F0026703 –therefore I will search all the path nodes having a msg that contains F0026703 and taake them only once: vbld_TempMacros().Add "NODELIST", msxml.selectNodes("//path[[not(.=preceding::path) and ../../msg[[contains(., '%CURRENT_HB_NUMBER%')]] ]]") where CURRENT_HB_NUMBER is set to F0026703 This works fine but I have a problem when string to search is F0026704-as it does read only one path : /branches/ecl/10.X/char/sh/dwh_feed_mappingBBB.sh And does not read paths /branches/ecl/10.X/char/sh/dwh_acc_settl.sh, /branches/ecl/10.X/char/sh/dwh_trades.sh ,etc –although they appear only in previous logentry for F0026703 –so they should be read as well. Any idea how to correct the XPath above in order to achieve what I need? I attached a sample VBP project XML file looks like this: action="M">/branches/ecl/10.X/char/c/ec_feed_liffe_v4.c copyfrom-path="/trunk/char/c/ec_feed_liffe_v5.c" copyfrom-rev="24755" action="A">/branches/ecl/10.X/char/c/ec_feed_liffe_v5.c action="M">/branches/ecl/10.X/char/c/ec_feed.c action="M">/branches/ecl/10.X/char/c/ec_feed.h ec_feed.c 8.36 -> 8.37 F0031033: Changes made to support. action="M">/branches/ecl/10.X/char/sh/dwh_acc_settl.sh action="M">/branches/ecl/10.X/char/sh/dwh_trades.sh action="M">/branches/ecl/10.X/char/sh/dwh_acc_equity.sh action="M">/branches/ecl/10.X/char/sh/dwh_contact_master.sh action="M">/branches/ecl/10.X/char/sh/dwh_account_master.sh action="M">/branches/ecl/10.X/char/sh/dwh_exe_ass.sh action="M">/branches/ecl/10.X/char/sh/dwh_accounting_transx.sh action="M">/branches/ecl/10.X/char/sh/dwh_nett_posn.sh action="M">/branches/ecl/10.X/char/sh/dwh_exe_brok.sh action="M">/branches/ecl/10.X/char/sh/dwh_feed_mapping.sh action="M">/branches/ecl/10.X/char/sh/dwh_feed_mappingAAA.sh dwh_acc_equity.sh 9.4 -> 9.5 F0026703 Change BATCH_DIR action="M">/branches/ecl/10.X/char/sh/dwh_acc_settl.sh action="M">/branches/ecl/10.X/char/sh/dwh_trades.sh action="M">/branches/ecl/10.X/char/sh/dwh_acc_equity.sh action="M">/branches/ecl/10.X/char/sh/dwh_contact_master.sh action="M">/branches/ecl/10.X/char/sh/dwh_account_master.sh action="M">/branches/ecl/10.X/char/sh/dwh_exe_ass.sh action="M">/branches/ecl/10.X/char/sh/dwh_accounting_transx.sh action="M">/branches/ecl/10.X/char/sh/dwh_nett_posn.sh action="M">/branches/ecl/10.X/char/sh/dwh_exe_brok.sh action="M">/branches/ecl/10.X/char/sh/dwh_feed_mapping.sh action="M">/branches/ecl/10.X/char/sh/dwh_feed_mappingBBB.sh dwh_acc_settl.sh 9.4 -> 9.5 F0026703 Change BATCH_DIR to COMPANY copyfrom-path="/trunk/char/c/ec_feed_liffe_v5.c" copyfrom-rev="24755" action="A">/branches/ecl/10.X/char/c/ec_feed_liffe_v5.c action="M">/branches/ecl/10.X/char/c/ec_feed.h ec_feed.h 8.36 -> 8.37 F0026325: Changes made to support. |
Finally I solved it,instead of :
vbld_TempMacros().Add "NODELIST", msxml.selectNodes("//path[[not(.=preceding::path) and ../../msg[[contains(., '%CURRENT_HB_NUMBER%')]] ]]") I use now: vbld_TempMacros().Add "NODELIST", msxml.selectNodes("//path[[not(.=preceding::path[[../../msg[[contains(., '%CURRENT_HB_NUMBER%')]] ]]) and ../../msg[[contains(., '%CURRENT_HB_NUMBER%')]] ]]") |
All times are GMT -5. The time now is 07:17 PM. |
Copyright © 1999-2023 Kinook Software, Inc.