Skip to main content
Question

XFMap - Raw Record


runneals
Contributor
Forum|alt.badge.img+20

Currently I have an XFMap file to parse attributes, but I'm looking at creating an attribute with the raw XML of the item to write out as a CLOB. Is there an easy way to add this into the xfmap to include it as an attribute when parsing out all the other attributes? I've tried mapping match=".", mapping match="*.", mapping match="*" all which don't work correctly.

Thanks in advance!

== Feature-Map to parse out each item ==

<feature-map multi-feature-construction="true"><mapping match="item"><feature-type><literal expr="Feature"/></feature-type></mapping></feature-map>

== Feature-Content-Map (what I'm trying to get to work ==

<mapping match="."><attributes><attribute><name><literal expr="RAW_XML"/></name><value><extract expr="." /></value></attribute></attributes></mapping>

4 replies

mark2atsafe
Safer
Forum|alt.badge.img+44

I think it must be an * character. I've seen a couple of examples by doing a search in our systems that look like this:

"georss:*"

"PNRDetails/*"

And in fact in the help docs I found this:

Using wildcards: In addition, each QName either in the match QName or in the match ancestors may be substituted by a wildcard, *, that matches any QName. The wildcard can also be specified either in the prefix and/or the local-name of a QName: *:local-name, or prefix:*, or *:* (which is the same as a single *).

...though having said that, this is far from my area of expertise, and this may not be what you want. Best to post this question to the support team and have them ask our XML developers.


runneals
Contributor
Forum|alt.badge.img+20
  • Author
  • Contributor
  • June 16, 2017
mark2atsafe wrote:

I think it must be an * character. I've seen a couple of examples by doing a search in our systems that look like this:

"georss:*"

"PNRDetails/*"

And in fact in the help docs I found this:

Using wildcards: In addition, each QName either in the match QName or in the match ancestors may be substituted by a wildcard, *, that matches any QName. The wildcard can also be specified either in the prefix and/or the local-name of a QName: *:local-name, or prefix:*, or *:* (which is the same as a single *).

...though having said that, this is far from my area of expertise, and this may not be what you want. Best to post this question to the support team and have them ask our XML developers.

I would have thought a wildcard would have worked for the match as well. Guess I'll hit up the support/dev team :)

stevenjh
Contributor
Forum|alt.badge.img+1
  • Contributor
  • March 1, 2022
runneals wrote:
I would have thought a wildcard would have worked for the match as well. Guess I'll hit up the support/dev team :)

Hi there, old thread but was there an answer to this one?


kailinatsafe
Safer
Forum|alt.badge.img+21
runneals wrote:
I would have thought a wildcard would have worked for the match as well. Guess I'll hit up the support/dev team :)

Hello @stevenjh​ , would you consider posting a new question to the FME Community, and including more specific details about your use case/goal with XFMap? Feel free to link your new post here as well, to help get more feedback! Best, Kailin.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings