blob: 7ccf3b46efea78b39f167657d45a98911dae19a8 [file] [log] [blame]
Meki Cherkaouib0365a72012-02-18 00:59:57 -08001
2var BinaryXMLEncoder = function BinaryXMLEncoder(){
3
4BinaryXMLEncoder.prototype.writeStartElement = function(
5 //String
6 tag,
7 //TreeMap<String,String>
8 attributes){
9
10}
11 try {
12 var dictionaryVal = stringToTag(tag);
13
14 if (null == dictionaryVal) {
15 BinaryXMLCodec.encodeUString(_ostream, tag, BinaryXMLCodec.XML_TAG);
16
17 } else {
18 BinaryXMLCodec.encodeTypeAndVal(BinaryXMLCodec.XML_DTAG, dictionaryVal, _ostream);
19 }
20
21 if (null != attributes) {
22 writeAttributes(attributes);
23 }
24
25 } catch (e) {
26 throw new Exception(e);
27 }
28};
29
30
31//TODO