Get the whole temp context after manipulation
Hi
I am trying to use Jquery as an XML tool to transform xml data other than the DOM.
- var xml = '<node>*plenty of xml*</node>';
- $(xml).find('#id').html('some text');
This works very well and i can change my xml data.
Now i want back my whole xml that i just transform and this is where there is a problem !
$(xml).find('#id').html('some text').parent.parent.parent ... is not a good way
I read something about the defaultContext but it seems risky / hazardous.
Needed fonction would be $(xml).find('#id').html('some text').getRoot().html(); or something like that.
Does anyone have an idea or i am try to do something impossible ?
escuse my english, i hope you understand what i am trying to explain :/