HomeForum
Welcome, Guest

Mapping an XML tag-name as a value
(1 viewing) (1) Guest
Data Warehousing and Data integration
  • Page:
  • 1

TOPIC: Mapping an XML tag-name as a value

Mapping an XML tag-name as a value 9 months, 1 week ago #3631

  • Robert
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
Hi, I want to map an XML tag-name to the target XML as a Node's value,
like this:

<root>
<XMLTagA>123</XMLTagA>
<XMLTagB>456</XMLTagB>
</root>


<target>
<node>
<name>XMLTagA</name>
<value>123</value>
</node>
<node>
<name>XMLTagB</name>
<value>456</value>
</node>
</target>

Is this possible?
Robert

Re: Mapping an XML tag-name as a value 9 months, 1 week ago #3632

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2183
  • Karma: 12
You can treat your xml file as usual text file

First of all you need to get rid of of <root> tag

This can be done by using data validator

than you need to get tag name this can be done by using substring function
You can get the actual value you use substring as well
Than you can create xml again by using encode xml function
If you are having difficulties we can create a working example for you

Mike
  • Page:
  • 1
Time to create page: 0.15 seconds

Testimonials

"Using Visual Importer ETL was a lot easier than we expected it to be, and had a lot more functionality than our other software."

Daniel Boel,
Information Technology Manager

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top