Hi
Using 10.2B06, I am using a ProDataset to build up my data, then using WRITE-XML to write the file.
The customer wants the XML to have an attribute on the outermost tag, but this is my ProDataset so not sure how I can do that.
e.g.
<?xml version="1.0" encoding="UTF-8"?>
<data content="orders">
<header>xyz ....</header>
<order ref="000001"> abc ....</order>
</data>
How could I get an attribute of name "content" and whose value is "orders" onto the ProDataset whose XML-NODE-NAME is "data" ?
Andy
Using 10.2B06, I am using a ProDataset to build up my data, then using WRITE-XML to write the file.
The customer wants the XML to have an attribute on the outermost tag, but this is my ProDataset so not sure how I can do that.
e.g.
<?xml version="1.0" encoding="UTF-8"?>
<data content="orders">
<header>xyz ....</header>
<order ref="000001"> abc ....</order>
</data>
How could I get an attribute of name "content" and whose value is "orders" onto the ProDataset whose XML-NODE-NAME is "data" ?
Andy