Sorry for the confusion, actually my content is html, but I'm working
on a specific node (with its descendants)

On 31 mar, 22:14, Ricardo <ricardob...@gmail.com> wrote:
> You can't treat XML as HTML, and jQuery's methods are meant for HTML
> only. I think you'll have to create your own wrapping function.
>
> cheers,
> - ricardo
>
> On Mar 31, 12:53 pm, tij_dev <tijmas...@googlemail.com> wrote:
>
> > Hello everybody,
>
> > I have a doc xml (which is not my window.document) which contains some
> > "center" tags and I would like to wrap all of them with a specific
> > "div" element.
>
> > I tried doing :
>
> > $("center",pDocument).wrapAll("<div class='wrap'></div>");
>
> > pDocment is my xml dom. but it says "Non valid argument"... :(
>
> > Please HELP !!!!!
>
> > Thanks a lot :)

Reply via email to