ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » DocType in CDATA

Post new topic  Reply to topic
 DocType in CDATA « View previous topic :: View next topic » 
Author Message
madi
PostPosted: Tue Apr 04, 2006 11:29 am    Post subject: DocType in CDATA Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

Hi All

I am trying to get this line into the CDATA tag:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Transaction SYSTEM "ReceiptAuthorizase.dtd">

but am not able to

Code:
SET OutputRoot.XMLNS.service.batch.batchXML.(XML.CDataSection) = CAST(ASBITSTREAM(InputRoot.XML OPTIONS FolderBitStream) AS CHARACTER
      CCSID InputRoot.Properties.CodedCharSetId ENCODING InputRoot.Properties.Encoding);


can we do this??

--madi
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 04, 2006 11:44 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Doctypes aren't CDATA.

I'm pretty sure there's an XML.DOCTYPE qualifier.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
madi
PostPosted: Tue Apr 04, 2006 1:04 pm    Post subject: Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

Im sorry I still dont get it.

Should I use
Code:
SET OutputRoot.XMLNS.service.batch.batchXML.(XML.CDataSection) = CAST(ASBITSTREAM(InputRoot.(XML.DocTypeDecl)Transac OPTIONS FolderBitStream) AS CHARACTER
      CCSID InputRoot.Properties.CodedCharSetId ENCODING InputRoot.Properties.Encoding);


then i would include anything!!

I agree DocTypes are not CDATA but I have to put it in !!

And what about
Quote:
<?xml version="1.0" encoding="UTF-8"?>


Is there a way to include this??

thanks
--madi
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 04, 2006 1:12 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Oh. I see! You're trying to capture the formated doctype information as a string.

Of course, you can always concat different ASBITSTREAM results together.

You're using version 5, right? I seem to remember some issues with ASBITSTREAM - where it didn't really support anything other than the RootBitStream option. Maybe that was solved in an efix or an FP or something...?

Also, I think you will cause big problems for other XML parsers if you include the <xml and <doctype> headers like that inside the document. I don't think it will like them at all - even in a CDATA section. Maybe I'm wrong.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
madi
PostPosted: Tue Apr 04, 2006 1:51 pm    Post subject: Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

Done.

Thanks Jeff, ur the man.

--madi
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » DocType in CDATA
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.