Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Workbench
Viewing all articles
Browse latest Browse all 69588

Add New Record to XML

$
0
0

I'm having issues inserting a new record into an exisiting XML variable. 

 

For example I already have an XML variable with two records:

 

<UserData>

     <UserInfo>

          <Name>Jim</Name>

          <Phone>111-111-1111</Phone>

     </UserInfo>

     <UserInfo>

          <Name>Mike</Name>

          <Phone>222-222-2222</Phone>

     </UserInfo>

</UserData>

 

Now if I wanted to add a third record:

 

<UserData>

     <UserInfo>

          <Name>Sam</Name>

          <Phone>333-333-3333</Phone>

     </UserInfo>

</UserData>

 

I've tried a couple of things in the XPath Builder...I know you can reference each record by an index number, but I don't find any functions for adding the Record

 

Anyone have any suggestions on how to handle this?


Viewing all articles
Browse latest Browse all 69588

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>