With the om version of a DomNode , you could use TypeInfo and domnode.writexml to create a qucik XML dump. This
worked great for array's as well. see code below
I want to repeat this feature using the xml.domnode and xmlDomDocument, I have tried a number of ways using
xml.Serializer.Variableto dom . but cannot get it to work, any ideas?
Thanks
Paul
01 MAIN
02 DEFINE n om.DomNode
03 DEFINE r RECORD
04 key INTEGER,
05 lastname CHAR(20),
06 birthdate DATE
07 END RECORD
08 LET r.key = 234
09 LET r.lastname = "Johnson"
10 LET r.birthdate = MDY(12,24,1962)
11 LET n = base.TypeInfo.create( r )
12 CALL n.writeXml( "r.xml" )
13 END MAIN