WMB入门之九:XML 节点全操作 增补 如何得到UUID

WMB入门之九:XML 节点全操作 增补 如何得到UUID
ESQL:
CREATE   COMPUTE  MODULE flow_Compute
    
CREATE   FUNCTION  Main()  RETURNS  BOOLEAN
    
BEGIN
        
SET  OutputRoot.XML.employee.uuid  =  UUIDASCHAR;
        
SET  OutputRoot.XML.employee.uuid2  =  UUIDASBLOB;
        
        
SET  OutputRoot.XML.employee.(XML.Attribute)id  = ' 123 ' ;
        
SET  OutputRoot.XML.employee.name  =   ' Felix ' ;
        
SET  OutputRoot.XML.employee.age  =   33 ;

        
SET  OutputRoot.XML.employee.address [ 1 ]   =   ' Dalian 88 ' ;
        
SET  OutputRoot.XML.employee.address [ 2 ]   =   ' Beijing 188 ' ;
        
SET  OutputRoot.XML.employee.address [ 3 ]   =   ' Shanghai 288 ' ;

        
SET  OutputRoot.XML.employee.title.VALUE  =   NULL ;
        
        
SET  OutputRoot.XML.employee.salary VALUE  =   NULL ;

        
SET  OutputRoot.XML.employee.Comments.(XML.Content) = NULL ;

        
RETURN  TRUE;
    
END ;
END  MODULE;

Result XML:
< employee  id ="123" >< uuid > 1d1932fe-b2a9-484d-8d32-e70440288914 </ uuid >< uuid2 > 239143b0384e46ff9bb50a34c8b28732 </ uuid2 >< name > Felix </ name >< age > 33 </ age >< address > Dalian 88 </ address >< address > Beijing 188 </ address >< address > Shanghai 288 </ address >< title />< salary ></ salary >< Comments /></ employee >

你可能感兴趣的:(WMB入门之九:XML 节点全操作 增补 如何得到UUID)