Posted: Tue Jul 07, 2009 7:43 am Post subject: DocumentTypedecl in XMLNS
Voyager
Joined: 27 Dec 2004 Posts: 82
Hi Guys,
I am craeating a message in the compute node. The XML tree is generated perfectly if i comment the DocTypedecl code.
else i 'No XML body found exception'
I am using following code
SET OutputRoot.XMLNS.(XML.XmlDecl) = '';
SET OutputRoot.XMLNS.(XML.XmlDecl).(XML.Version) = '1.0';
SET OutputRoot.XMLNS.(XML.XmlDecl).(XML."Encoding") = 'UTF-8';
SET OutputRoot.XMLNS.(XML.DocTypeDecl)Service ='';
SET OutputRoot.XMLNS.(XML.DocTypeDecl).(XML.SystemId) = 'mySample.dtd';
SET OutputRoot.XMLNS.Service.Details.SName='abc';
SET OutputRoot.XMLNS.Service.Details.SNo='1';
.
.
...
I am expecting
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Service SYSTEM "mySample.dtd">
<Service>
<Details>
<SName>abc</SName>
<SNo>1</SNo>
</Details>
</Service>
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