BizTalk Server General - Forcing BizTalk to write out a DOCTYPE tag

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > March 2006 > Forcing BizTalk to write out a DOCTYPE tag





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 Forcing BizTalk to write out a DOCTYPE tag
fheinema

2006-01-23, 6:02 pm

We have a partner that needs the DOCTYPE element written out in the XML file
we are sending them. Is there a way to force BizTalk 2004 to include the
DOCTYPE tag? I tried adding in information on the schema properties for
"Document Type" and "Document Version" but it does not write out a DOCTYPE
tag.
--
Fred Heinemann
Stephen W. Thomas

2006-01-23, 6:02 pm

Hello.

So you have an element in your schema called DOCTYPE and you just want to
make sure it always shows up with either a value or blank?

What I usually do is use a script functoid and have it return “”. Then, map
that to the node. I think you can also use a string concatenation with just
a single blank parameter.

Point being you need some functoid to create the node for you.

Stephen W. Thomas
http://www.biztalkgurus.com
http://geekswithblogs.net/sthomas/


"fheinema" wrote:

> We have a partner that needs the DOCTYPE element written out in the XML file
> we are sending them. Is there a way to force BizTalk 2004 to include the
> DOCTYPE tag? I tried adding in information on the schema properties for
> "Document Type" and "Document Version" but it does not write out a DOCTYPE
> tag.
> --
> Fred Heinemann

Scott Colestock

2006-01-24, 6:01 pm

He is dealing with DTDs - to add a DOCTYPE, your best bet might be to use a
send pipeline to add this to the raw content.
(You could write a custom serializer, as has been discussed before, but that
might be overkill for this.)

Scott Colestock
www.traceofthought.net


"Stephen W. Thomas" <StephenWThomas@discussions.microsoft.com> wrote in
message news:F484AA67-D044-438C-AD9A-A162117743AF@microsoft.com...[vbcol=seagreen]
> Hello.
>
> So you have an element in your schema called DOCTYPE and you just want to
> make sure it always shows up with either a value or blank?
>
> What I usually do is use a script functoid and have it return "". Then,
> map
> that to the node. I think you can also use a string concatenation with
> just
> a single blank parameter.
>
> Point being you need some functoid to create the node for you.
>
> Stephen W. Thomas
> http://www.biztalkgurus.com
> http://geekswithblogs.net/sthomas/
>
>
> "fheinema" wrote:
>


fheinema

2006-01-24, 6:04 pm

So there is no setting in the pipeline properties to add a DOCTYPE element
in? I know there is one for the xml processing instruction. I was hoping
there was another property I could set to add that in.

--
Fred Heinemann


"Scott Colestock" wrote:

> He is dealing with DTDs - to add a DOCTYPE, your best bet might be to use a
> send pipeline to add this to the raw content.
> (You could write a custom serializer, as has been discussed before, but that
> might be overkill for this.)
>
> Scott Colestock
> www.traceofthought.net
>
>
> "Stephen W. Thomas" <StephenWThomas@discussions.microsoft.com> wrote in
> message news:F484AA67-D044-438C-AD9A-A162117743AF@microsoft.com...
>
>
>

Scott Colestock

2006-01-24, 6:04 pm

Not that I'm aware of -

Scott Colestock
www.traceofthought.net

"fheinema" <fheinema@discussions.microsoft.com> wrote in message
news:3BD2AB3E-E798-4046-BDAF-1AF7E3B59D17@microsoft.com...[vbcol=seagreen]
> So there is no setting in the pipeline properties to add a DOCTYPE element
> in? I know there is one for the xml processing instruction. I was hoping
> there was another property I could set to add that in.
>
> --
> Fred Heinemann
>
>
> "Scott Colestock" wrote:
>


Younes Amar

2006-03-25, 11:37 am

Hi,
You can use Grid Properties to set the "Doctype Public" and "Doctype
System"
properties in the mapper.

Younes

"Scott Colestock" <scolestock@community.nospam> wrote in message
news:O5aStmQIGHA.216@TK2MSFTNGP15.phx.gbl...
> Not that I'm aware of -
>
> Scott Colestock
> www.traceofthought.net
>
> "fheinema" <fheinema@discussions.microsoft.com> wrote in message
> news:3BD2AB3E-E798-4046-BDAF-1AF7E3B59D17@microsoft.com...
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com