I hvae two forms which share the same "master schema" that contains the superset of the elements of the two forms.
So I have this:
So for example I have an xml variable where one person has filled out all fields for form1 and now I want to put in these into another xml variable where another person (in parallel) has filled out all info in form2. How can this be done without making a assignment to each element one at a time.
Thanks for the input - I got it to work by using your suggestion Jasmin.
To Parth: I am not aware how I can use XQuery with LC, can you send a link to where I could find more on this. Also I would like to know more on the XSLT transformations on xml files (I have not yet used them actively in my solutions).
If anyone has info (links or anything) on these issues I would like to hear about it 🙂
I have a similar issue. The only difference is I have repeating subforms.<br /><br />XML1 contains non repeating subforms. XML2 contains repeating subforms.<br /><br />I would like to add XML2<br /><br /><form1><br /> <CompetencyDetails> <br /> <employee_firstname>Joe</employee_firstname> <br /> <employee_lastname/> <br /> </CompetencyDetails> <br /> <CompetencyDetails> <br /> <employee_firstname>Bob</employee_firstname> <br /> <employee_lastname/> <br /> </CompetencyDetails><br /> </Details><br /></form1> <br /><br />to XML1<br /><br /><form1><br /> </CompetencyDetails><br /> <Details> <br /> <review_from>01122009</review_from> <br /> <review_to>12122009</review_to> <br /> <evaluator_firstname>Sam</evaluator_firstname> <br /> <evaluator_lastname>Evaluator</evaluator_lastname> <br /> </Details><br /><form1><br /><br />Using SetValue I could not get <br /><br /><b>/process_data/xml/form1/CompetencyDetails=/process_data/xml2/form1/CompetencyDetails[*]</b><br /><br />to work. Any help will be highly appreciated.
You want to avoid copying the content from the xml that has repeating nodes. In my example I keep the xml with the two repeating nodes (CompetencyDetails) intact and just copy the content of Details over.