
Contributor III
2017-04-07
12:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DataMapper - JSON -> XML - Add a colon in XML tag
Hello everyone,
Today i want to generate an XML file from a JSON.
I already generate XML files but I here I want to generate a particular one, this is an XML in google format.
Like this:
<entry>
<g:id>114778689</g:id>
<g:title>My PRODUCT</g:title>
</entry>
My problem is the colon because on STUDIO it is prohibit to add a colon( : ) in an XML tag.
Has anyone had a solution to work this in mapping?
Actual, the only solution is to make a replacement after file generation (not good).
Thank's for your help !
Today i want to generate an XML file from a JSON.
I already generate XML files but I here I want to generate a particular one, this is an XML in google format.
Like this:
<entry>
<g:id>114778689</g:id>
<g:title>My PRODUCT</g:title>
</entry>
My problem is the colon because on STUDIO it is prohibit to add a colon( : ) in an XML tag.
Has anyone had a solution to work this in mapping?
Actual, the only solution is to make a replacement after file generation (not good).
Thank's for your help !
291 Views
3 Replies

Anonymous
Not applicable
2018-04-11
05:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Could you please post your trouble screenshot on forum? What is talend build version are you using?
Best regards
Sabrina
291 Views

Anonymous
Not applicable
2018-04-11
05:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You have to declare a namespace.
You can create a XML structure importing this file:
<entry xmlns:g="http://www.w3.org/TR/html4/">
<g:id>114778689</g:id>
<g:title>My PRODUCT</g:title>
</entry>
Then you get:
Regards.
Eric
291 Views

Anonymous
Not applicable
2019-06-14
04:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@eric44 wrote:
Hi,
You have to declare a namespace.
You can create a XML structure importing this file:
<entry xmlns:g="https://theessayservice.org/buy-term-paper/">
<g:id>114778689</g:id>
<g:title>My PRODUCT</g:title>
</entry>
Then you get:
Oh, I see now. Without importing that file it won't working... Thanks a lot!
291 Views
