Posted: Tue Apr 04, 2006 11:29 am Post subject: DocType in CDATA
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);
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 !!
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.
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