Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Writing XML via XML Adapter with Data Migrator -- Can You Print an Empty Field?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Writing XML via XML Adapter with Data Migrator -- Can You Print an Empty Field?
 Login/Join
 
Virtuoso
posted
I have an xml spec that specifies a field that is generally empty for our data. So as expected, when I send records to the output file this field doesn't show up in the stream.

My customer wants the field to appear, with no data in it like this:

 <fieldname></fieldname> 


Is there a way to do this with Data Migrator? I've played with the MISSING attribute and putting different comparators in the assignment without seeing any change to the output.

J.

This message has been edited. Last edited by: John_Edwards,



 
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007Report This Post
Guru
posted Hide Post
There's nothing displayed in the post after "like this:" so I'm guessing that you wrote some XML that the Forum software processed. You may need to use the CODE
</> 
button around it.

Could you also post the xsd that describes the entity.


N/A
 
Posts: 397 | Location: New York City | Registered: May 03, 2007Report This Post
Virtuoso
posted Hide Post
Fixed. Thanks for the tip.



 
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007Report This Post
Guru
posted Hide Post
I was afraid of that. You had it right the first time, If there is no value for the field we output... nothing.

I talked to the development manager and we could add the functionality you require. So that you get notified when it's done please open a hottrack case.


N/A
 
Posts: 397 | Location: New York City | Registered: May 03, 2007Report This Post
Virtuoso
posted Hide Post
The XSD Element spec has an attribute entitled "nillable" that permits empty fields to appear in the file. The xsd element I'm coding to doesn't specify nillable=true, so as far as I'm concerned their test tool that complains about the element being missing has no credibility. But now that I've complained I'm sure they'll put it in and we'll be back to this same place.

I'll open a case, but I'm leaping to the conclusion this won't be a patch. Upgrade is likely not something that will happen on this site soon.

Thanks for the reply.

J.



 
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007Report This Post
Virtuoso
posted Hide Post
Opened a case, ticket #82642522



 
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Writing XML via XML Adapter with Data Migrator -- Can You Print an Empty Field?

Copyright © 1996-2020 Information Builders