How can I transfer XML elements elsewhere in a document? So I have this:
& lt; External & gt; & Lt; Foo & gt; & Lt; Child name = "a" /> & Lt; Child name = "b" /> & Lt; Child name = "c" /> & Lt; / Foo & gt; & Lt; Bar / & gt; & Lt; / External & gt; and want to end it with:
& lt; External & gt; & Lt; Foo / & gt; & Lt; Bars & gt; & Lt; Child name = "a" /> & Lt; Child name = "b" /> & Lt; Child name = "c" /> & Lt; / Bars & gt; & Lt; / External & gt; Using PHP's Simple XML
Is there something I'm missing (Append-chald-like)?
You can create recursive functions that clone characteristics and children. Run There is no other way to have children with simple XM
Comments
Post a Comment