sstrigler/JSJaC — pull request #50 by eloycoto (2013-04-22 15:20:30+00:00)
Title: JsJacMessage GetNode

Hi,

In JsjacMessage the node values is not possible to get from the client, this is a example.

Generate new node
```javascript
var customValues = {
one:1,
two:2
}

var oMsg = new JSJaCMessage();
oMsg.buildNode("newNode");
oMsg.appendNode("newNode",customValues);
oMsg.setTo(new JSJaCJID(sendmessage));
oMsg.setBody(sendtext);
con.send(oMsg);
```

This is the xml:
```xml

hello

```

In the other side of the customer, you only need use this to get all attributes:

```javascript
function handleMessage(oJSJaCPacket) {
var attrs = oJSJaCPacket.getNodeVal("newNode");
...
}
```

Cheers