web stats
Mirth Community - View Single Post - Building XML with attributes only
View Single Post
  #1  
Old 08-27-2014, 08:43 AM
seaston seaston is offline
OBX.3 Kenobi
 
Join Date: Feb 2010
Location: London, UK
Posts: 168
seaston is on a distinguished road
Default Building XML with attributes only

Hi there.

Does anyone know why this produces nothing in the channelMap?

Code:
 
var ecvi = <ecvi/>;
ecvi.@studyCode = "30";
ecvi.@ptTitle = "Mr";
ecvi.@ptFirstNames = "TEST";
ecvi.@ptLastName = "PATIENT";
 
channelMap.put("ecvixml",ecvi);
It is ok as soon as I add an element, but I cannot seem to build ecvi with attributes only as required.

Simon
Reply With Quote