Posted: Fri Sep 23, 2005 11:53 am Post subject: constructing of xml tree using input plugin node
Voyager
Joined: 29 Jun 2005 Posts: 78
i am creating input plugin node which takes file name as a property
and reads the file and constructs an xml tree as
<Structure>
<fileName></filename>
<fileContent></fileContent>
<Structure>
and send it to the next compute node .how can i create a xml tree in my plugin node ..
please give sample example.. for constructing a xml message tree _________________ Narendra CH
You'll construct a series of linked MbNodes, that have the XML parser associated with them. _________________ I am *not* the model of the modern major general.
that is my custom plugin node not Mb Plugin node
and this node comes at the starting of the flow ...
and my requirement is...
in my custom node i must read a file from a directory
and create a xml tree in the format which i had specified above
and the content and name should be be in the message tree as a child tags and pass the tree to the next MbNodes _________________ Narendra CH
You can create a bitstream that matches the "xml tree" you want to build (but it will not be a tree, it will be a flat section of bytes). Then you can associate that with the XML or XMLNS parser, and then the next node will have the option of parsing down the different pieces of the logical message tree.
The only thing that will be different from any other sample Input node will be that you are going to add some fixed text to the front and back of the contents of the file. _________________ 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