Copy link to clipboard
Copied
Using: FM 8.0
I am attempting to export a FM file using the Save As XML… command. There are several elements with attributed assigned to them, however during the export I would like to convert these attributes from an attribute to an element tag. What would the read/write syntax be for this type of conversion?
For example, instead of this xml file being created after the FM export:
<Materials Model=”build01”><Lumber>2X4</Lumber></Materials>
Would like this instead:
<Materials><Model>build01</Model><Lumber>2X4</Lumber></Materials>
Thanks in advance.
Copy link to clipboard
Copied
Hi Jeddlemen,
Read/write rules do not support operations of this complexity. Your best bet is probably to use an XSL transformation as part of the import/export process, something which could handle this type of structural alteration fairly easily. You can set up your structured application to run the transformation automatically.
Alternatively, you could write an import/export API client to do it, but that would certainly be much more effort.
Russ