on 07-22-2010 9:31 AM
Hi ,
I have a requirement where I need to convert the root node along with its child nodes into xstring format. I checked a couplthee of methods , but i am unable to get the xstring like we get if we have form ui element in wd abap . I want the similar xstring which contains all the fields in the context.
Any help would be really useful.
Thanks,
Saujanya
Hi Saujanya,
I'd be very interested to know the reasoning behind the request - serialising of WD - sounds interesting!
Can you not just use the to_xml method of IF_WD_CONTEXT_NODE interface? Perhaps I am misunderstanding you, which method of the element are you using to get an XSTRING representation of the element?
I'd guess this (to_xml) only takes the current node, not all the sub nodes - but you could recursively loop around the structure pretty easily if you had a reference to the top level node.
to get all the context attributes instead get the node info - IF_WD_CONTEXT_NODE->GET_NODE_INFO
this then has methods to list all attributes of the node.
If this is not the info you are after, could you please clarify your original request?
Thanks,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.