# PeerJs Xml Example

# PeerJs + XML Example

Collaborative XML editing with Yatta and PeerJs (WebRTC).

Yatta is a Framework for Real-Time collaboration on arbitrary data structures. You can find the code for this example here.

Open this link on other clients: Drop me

. Share this link and build a peer-to-peer based network. Changes won't be recorded by any server.

Open the console and use DOM and jQuery in order to manipulate the body-element of this website. You can see live changes on other clients.

#### Sample code for the console

<nowrap> `$("body").append('<div id="div_tag">some new div tag </div>');`
`$("#div_tag").empty();`
`$("<p><i>This is inserted after every p tag</i></p>").insertAfter("p");`
`$("p i").remove();`
</nowrap>