• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Explicit usage of the xml-namespace "xml" in tAdvancedFileOutputXML

#1 2009-05-08 12:43:40

akatose
Member
Registered: 2008-12-13
Posts: 15

Explicit usage of the xml-namespace "xml" in tAdvancedFileOutputXML

Tags: [namespace, xml]

Hi there,

I want to generate the following xml with a tAdvancedFileOutXML:

Code:

<?xml version="1.0" encoding="UTF-8"?>
<objects xmlns="http://www.example.com/xml/my_default_namespace">
  <object id="1234" xml:lang="de-DE">data</object>
</objects>

So I want to use a custom default namespace, but for some attributes I want to make explicit use of the "xml" namespace.

I tried to achieve this in TOS 3.0 and TOS 3.1, but I cannot enter a namespace that starts with xml. I always get the error message "Invalid string for XML Label. Label was not changed."

Best regards,
Michael


Uploaded Images

Last edited by akatose (2009-05-08 12:49:04)

Offline

#2 2009-05-08 14:59:21

shong
Talend team
Registered: 2007-08-29
Posts: 10310
Website

Re: Explicit usage of the xml-namespace "xml" in tAdvancedFileOutputXML

Hello

Please see the same question on [Forum, topic 1531] tAdvancedFileOutputXML and xmlns attribute.

Best regards

         shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2009-05-08 15:22:20

akatose
Member
Registered: 2008-12-13
Posts: 15

Re: Explicit usage of the xml-namespace "xml" in tAdvancedFileOutputXML

Hi Shong,

thank you for directing me to this other post. Jonathan filed his problem as issue #0002339, which was solved:
http://talendforge.org/bugs/view.php?id=2339

Unfortunately, this does not solve my problem. I do not want to create xmlns attributes manually. Instead I want to specify the namespace "xml" for an attribute or entity:

It is okay to disallow the attribute "xmllang". The attribute "xml:lang" is perfectly valid though. The string "xml" is part of the namespace not part of the attribute name. But TOS does not allow me to create this.

Best regards,
Michael

Offline

#4 2009-05-11 21:38:57

akatose
Member
Registered: 2008-12-13
Posts: 15

Re: Explicit usage of the xml-namespace "xml" in tAdvancedFileOutputXML

Hi there,

maybe it is better to rephrase my question:

Has anyone an idea how to generate attributes of the "xml:"-namespace (e.g., "xml:lang" or "xml:space") with tAdvancedFileOutputXML?
See also: http://www.w3.org/XML/1998/namespace

Best regards,
Michael

Offline

#5 2009-05-12 01:39:50

mhirt
Talend team
Registered: 2006-09-19
Posts: 1641

Re: Explicit usage of the xml-namespace "xml" in tAdvancedFileOutputXML

OK, I see the problem.
For me it's a bug, you can report it on our bugtracker if you want.

As a temporary  solution, you can use the right click -> Impoort XML schema.

That should help you to resolve this issue.

Regards,

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Explicit usage of the xml-namespace "xml" in tAdvancedFileOutputXML

Board footer

Powered by FluxBB