BizTalk Server General - Easy One... I think

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > February 2005 > Easy One... I think





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Easy One... I think
Brian C

2005-02-24, 5:51 pm

I have a large XML file that has many fields. A lot of the fields will be
blank when I submit the XML to a partner. I have a map that creates the
values for the fields in this large XML file. The question I have is
this... it appears that if I do not have a default value in the fields that
I know will be blank, when I get the 'output' XML file (after the map has
been applied), the fields that did not have a default value in the schema
definition do not show up in the output XML file. I need to have the 'tags'
for the XML nodes that do not have values... how do I do that?


Thanks in advance!


Brian


Jon Flanders[DevelopMentor]

2005-02-24, 5:51 pm

Brian - the elements in the desitination schema can have a default value.
Select the element in the desitination schema tree and go to its properties.
You can set the Value property to an empty string (you can just put in a
single space).

--
Jon Flanders [DevelopMentor]
http://staff.develop.com/jfland/
http://www.develop.com/courses/biztalk
"Brian C" <brian.cesafsky@midwestwireless.com> wrote in message
news:%23Dm5sgoGFHA.580@TK2MSFTNGP15.phx.gbl...
>I have a large XML file that has many fields. A lot of the fields will be
>blank when I submit the XML to a partner. I have a map that creates the
>values for the fields in this large XML file. The question I have is
>this... it appears that if I do not have a default value in the fields that
>I know will be blank, when I get the 'output' XML file (after the map has
>been applied), the fields that did not have a default value in the schema
>definition do not show up in the output XML file. I need to have the
>'tags' for the XML nodes that do not have values... how do I do that?
>
>
> Thanks in advance!
>
>
> Brian
>
>



Brian C

2005-02-24, 5:52 pm

I tried that, but if the type is an 'int', I can't put in a space. I don't
know if the data type should be set to string for these fields. I don't
know how important the data type is... Will I mess things up by changing the
data type?

Thanks!

"Jon Flanders[DevelopMentor]" <jfland@develop.com> wrote in message
news:O8o4qJpGFHA.3912@TK2MSFTNGP10.phx.gbl...
> Brian - the elements in the desitination schema can have a default value.
> Select the element in the desitination schema tree and go to its
> properties. You can set the Value property to an empty string (you can
> just put in a single space).
>
> --
> Jon Flanders [DevelopMentor]
> http://staff.develop.com/jfland/
> http://www.develop.com/courses/biztalk
> "Brian C" <brian.cesafsky@midwestwireless.com> wrote in message
> news:%23Dm5sgoGFHA.580@TK2MSFTNGP15.phx.gbl...
>
>



Brian C

2005-02-24, 5:52 pm

follow-up question... I thought maybe setting the "Nillable" property to
True, that would take care of the issue, but it doesn't... is the Nillable
property just to say if the field is required or not?

Thanks again!


"Jon Flanders[DevelopMentor]" <jfland@develop.com> wrote in message
news:O8o4qJpGFHA.3912@TK2MSFTNGP10.phx.gbl...
> Brian - the elements in the desitination schema can have a default value.
> Select the element in the desitination schema tree and go to its
> properties. You can set the Value property to an empty string (you can
> just put in a single space).
>
> --
> Jon Flanders [DevelopMentor]
> http://staff.develop.com/jfland/
> http://www.develop.com/courses/biztalk
> "Brian C" <brian.cesafsky@midwestwireless.com> wrote in message
> news:%23Dm5sgoGFHA.580@TK2MSFTNGP15.phx.gbl...
>
>



Jon Flanders[DevelopMentor]

2005-02-24, 5:52 pm

Right - if you can change the schema - set Nillable to true. But - the
receive of the message might have a problem if it is nill. You might just
put in 0. Since they likely aren't going to read it but write a new value
there - it won't probably matter.

--
Jon Flanders [DevelopMentor]
http://staff.develop.com/jfland/
http://www.develop.com/courses/biztalk
"Brian C" <brian.cesafsky@midwestwireless.com> wrote in message
news:%23Kr%23IzqGFHA.2924@TK2MSFTNGP15.phx.gbl...
> follow-up question... I thought maybe setting the "Nillable" property to
> True, that would take care of the issue, but it doesn't... is the Nillable
> property just to say if the field is required or not?
>
> Thanks again!
>
>
> "Jon Flanders[DevelopMentor]" <jfland@develop.com> wrote in message
> news:O8o4qJpGFHA.3912@TK2MSFTNGP10.phx.gbl...
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com