When using the SET statement to add a message tree field, then this will be added as the last child. So in the example given above, the Status field will be created as the last child of CreateRQ which means that it will appear after Station. To create the Status field as the first child in the list then you would need something like the following :
Code:
SET OutputRoot = InputRoot;
DECLARE createRef REFERENCE TO OutputRoot.XML.CreateRQ;
CREATE FIRSTCHILD OF createRef NAME Status VALUE 'SUCCESS';
With attributes being children of CreateRQ then you may need to add the TYPE clause to the CREATE statement using the types indicated in the previous append.
But since the default for the XML parser is a tag, then this should give you what you require. _________________ Regards
Craig
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum