equal
deleted
inserted
replaced
97 } |
97 } |
98 } |
98 } |
99 |
99 |
100 void characters(const string_t chars) { |
100 void characters(const string_t chars) { |
101 // There should be no null bytes in XML, 0x00 is invalid here. |
101 // There should be no null bytes in XML, 0x00 is invalid here. |
102 // No 0x00 should come here through the XML library, |
102 // No 0x00 should come here through the XML library. |
103 // but if any comes, the value is trimmed at the first null byte. |
103 // However, if any comes, such value will be passed through unchanged i.e. including the 0x00. |
104 currentValue << chars.c_str(); |
104 currentValue << chars; |
105 } |
105 } |
106 |
106 |
107 public: |
107 public: |
108 |
108 |
109 RelpipeSaxHandler(std::ostream& output) : DefaultHandler(), writer(Factory::create(output)) { |
109 RelpipeSaxHandler(std::ostream& output) : DefaultHandler(), writer(Factory::create(output)) { |