Meki Cherkaoui | b0365a7 | 2012-02-18 00:59:57 -0800 | [diff] [blame] | 1 | |
| 2 | var BinaryXMLEncoder = function BinaryXMLEncoder(){ |
| 3 | |
| 4 | BinaryXMLEncoder.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 |