Posted: Thu Feb 01, 2007 7:24 am Post subject: Asbitstream function
Newbie
Joined: 23 Jan 2007 Posts: 8
Hi,
I am using asbitstream function and i am using xmlnc parser. It throws me following error to
when my input is like
<m0:itemlist atrrib="xyz">somevalue</m0:itemlist>
ERROR "Invalid target for folder bitstream"
But when i try following
<m0:itemlist atrrib="xyz"/>
It works
Following is the code snippet
SET itemBlob = ASBITSTREAM(content CCSID K_MSG_CCSID ENCODING K_MSG_ENCODING OPTIONS FolderBitStream); _________________ PRAVEER
If you want to use FolderBitstream mode, the target element ( 'content' in your case ) must have the following characteristics:
- It must be a Name element ( not a Name-Value or Value element ).
- It must not be one of the 'special' element types ( like XMLNSC.XmlDeclaration ).
My last post told you what the problem is. 'content' is probably a NameValue node. It must not have a value - otherwise you will get that error.
If you think about it, XMLNSC is just helping you to avoid data loss. If your element 'content' has a value, where exactly were you expecting that value to appear in the resulting bitstream?
Code:
<content><child1></child1>Should the value go here?</content>
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