Can OxygenXML batch relocate XML Blocks?
Posted: Mon Jun 03, 2019 10:59 pm
Greetings,
Does OxygenXML have the capability to relocate XML blocks in order to fix validation errors? The two examples below provide a visual as to what I mean when I say, "relocate an XML block".
Example #1 shows the XML block in the wrong location and thereby causing a validation failure. Can OxygenXML batch fix 200 data modules so it reflects what is shown in Example #2 and thereby fixing the validation failure?
In other words, is the XML Refactoring Tool powerful enough to instruct OxygenXML so it moves the XML block (with all three listItem tag data included as well) so it precedes the closing tag belonging to the Parent Paragraph as shown in Example #2?
Additionally, can the Perl RegEx be designed to only target the closing preceding the opening tag so it does not confuse it with other closing tags found elsewhere inside the same XML file?
Example #1: Validation Fails:
Example #2: Validation Error Free:
If OxygenXML can successfully execute such an operation I will be blown away with the power this software has designed into it. Thanks in advance for any help regarding this matter.
Does OxygenXML have the capability to relocate XML blocks in order to fix validation errors? The two examples below provide a visual as to what I mean when I say, "relocate an XML block".
Example #1 shows the
Code: Select all
<sequentialList>data</sequentialList>
In other words, is the XML Refactoring Tool powerful enough to instruct OxygenXML so it moves the
Code: Select all
<sequentialList>data</sequentialList>
Code: Select all
</para>
Additionally, can the Perl RegEx be designed to only target the closing
Code: Select all
</para>
Code: Select all
<sequentialList>
Code: Select all
</para>
Example #1: Validation Fails:
Code: Select all
<para>Parent Paragraph:</para>
<sequentialList>
<listItem><para>Subordinate Para1</para></listItem>
<listItem><para>Subordinate Para2</para></listItem>
<listItem><para>Subordinate Para3</para></listItem>
</sequentialList>
Code: Select all
<para>Parent Paragraph:<sequentialList>
<listItem><para>Subordinate Para1</para></listItem>
<listItem><para>Subordinate Para2</para></listItem>
<listItem><para>Subordinate Para3</para></listItem>
</sequentialList></para>