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