Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Attribute to Element using Read/Write Syntax

Explorer ,
Apr 13, 2009 Apr 13, 2009

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.

TOPICS
Structured

Views

665
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Apr 14, 2009 Apr 14, 2009

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines