I would need some help here as I am completely new to UltraEdit. I was previously using a different text editor, but the new place I'm working at uses UltraEdit. So I have to use it to do what I need.
I have a standard XML set of code:
I have a text file with 1500+ lines. The first 2 lines of the text file are as follows:
I want to end up with the following:
But repeated through the 1500+ lines in my text file.
I've tried to create a macro, but none of the functions using the XML editor are captured in the automatic macro creation. It would be the fastest way to do it. Use the XML function to copy the segment of code to the bottom, select the original segment of code, copy the (n)th line from the text file, replace in the XML file, save and repeat with a loop until it reaches the end of the text file. At least that was what I thought to try doing.
Not being able to do that, I haven't come up with a way to create the document that I need. Any and all help would be appreciated to make this happen.
I have a standard XML set of code:
Code: Select all
<selectionset name="XXXXXX">
<findspec mode="all" disjoint="0">
<conditions>
<condition test="contains" flags="10">
<property>
<name internal="LcOaSceneBaseUserName">Name</name>
</property>
<value>
<data type="wstring">XXXXXX</data>
</value>
</condition>
</conditions>
<locator>/</locator>
</findspec>
</selectionset>
Code: Select all
20-100-AC-BFW-1001
20-150-AC-BFW-1002-38H-ET
Code: Select all
<selectionset name="20-100-AC-BFW-1001">
<findspec mode="all" disjoint="0">
<conditions>
<condition test="contains" flags="10">
<property>
<name internal="LcOaSceneBaseUserName">Name</name>
</property>
<value>
<data type="wstring">20-100-AC-BFW-1001</data>
</value>
</condition>
</conditions>
<locator>/</locator>
</findspec>
</selectionset>
<selectionset name="20-150-AC-BFW-1002-38H-ET">
<findspec mode="all" disjoint="0">
<conditions>
<condition test="contains" flags="10">
<property>
<name internal="LcOaSceneBaseUserName">Name</name>
</property>
<value>
<data type="wstring">20-150-AC-BFW-1002-38H-ET</data>
</value>
</condition>
</conditions>
<locator>/</locator>
</findspec>
</selectionset>
I've tried to create a macro, but none of the functions using the XML editor are captured in the automatic macro creation. It would be the fastest way to do it. Use the XML function to copy the segment of code to the bottom, select the original segment of code, copy the (n)th line from the text file, replace in the XML file, save and repeat with a loop until it reaches the end of the text file. At least that was what I thought to try doing.
Not being able to do that, I haven't come up with a way to create the document that I need. Any and all help would be appreciated to make this happen.