compatibleone / accords-platform

www.compatibleone.org
Apache License 2.0
11 stars 12 forks source link

[CONNECT-263] Handle special characters in XML attributes. #7

Closed MarkOnApp closed 11 years ago

MarkOnApp commented 11 years ago

Convert double quote to " on autosave, and convert " to double quote when parsing XML attribute values.

coxml/document.c Altered: "document_atb_value()" to unserialize xml string attribute value.

coxml/xmlparse.c Replaced (unused) Mnemonichs with character literals to avoid text editor issues. Added: "translate_string_with_string_impl()", "translate_string_with_string()", "translate_string_with_string_startpos()"; "fprintf_xml_string_attribute()"; "unserialize_xml_string_attribute_value()".

coxml/xmlparse.h Added: "translate_string_with_string()", "translate_string_with_string_startpos()"; "fprintf_xml_string_attribute()"; "unserialize_xml_string_attribute_value()".

tools/strukt/occirest.c Altered: "generate_occi_rest_builder()" to call "fprintf_xml_string_attribute()" when writing out xml attribute strings.