Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
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?
Go
New
Search
Notify
Tools
Reply
  
Writing XML via XML Adapter with Data Migrator -- Can You Print an Empty Field?
 Login/Join
 
Master
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: 944 | Location: At the Mast | Registered: May 17, 2007Reply With QuoteReport 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.
 
Posts: 389 | Location: New York City | Registered: May 03, 2007Reply With QuoteReport This Post
Master
posted Hide Post
Fixed. Thanks for the tip.



 
Posts: 944 | Location: At the Mast | Registered: May 17, 2007Reply With QuoteReport 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.
 
Posts: 389 | Location: New York City | Registered: May 03, 2007Reply With QuoteReport This Post
Master
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: 944 | Location: At the Mast | Registered: May 17, 2007Reply With QuoteReport This Post
Master
posted Hide Post
Opened a case, ticket #82642522



 
Posts: 944 | Location: At the Mast | Registered: May 17, 2007Reply With QuoteReport This Post
  Powered by Social Strata  
 

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-2018 Information Builders, leaders in enterprise business intelligence.