On 9/12/07, Richard D. Worth <[EMAIL PROTECTED]> wrote: > > On 9/12/07, Pyrolupus <[EMAIL PROTECTED]> wrote: > > > > > > Also, children() is not the right method. I should have originally > > said find('*'). children() is only for immediate descendants, while > > find('*') gets them all. > > > children() is fine here because as you get the immediate children and > move/remove them, their contents/descendant elements come with them. > > - Richard > > Not only is children() fine, but find('*') won't do at all, as it will flatten all the descendants into one selection set and they'll all be inserted at the same level.
- Richard