Opened 16 years ago

Last modified 14 years ago

#1101 closed defect (fixed)

dumpXMLDAE produces not well-formed XML

Reported by: TimoPenndorf Owned by: TimoPenndorf
Priority: high Milestone:
Component: Version:
Keywords: Cc: TimoPenndorf,

Description

Consider the following model:

model Test

parameter Real A;
parameter Real B;
Real x

"evaluated to 0 if A < B";

equation

x = if (A < B) then 0 else 1;

end Test;

dumpXMLDAE produces wrong XML code since "<" in the comment of x and in the equation is not transformed to &lt;
Look at lines 9 and 44 of Text.xml

Attachments (3)

test.mo (146 bytes ) - added by TimoPenndorf 16 years ago.
Test.xml (1.8 KB ) - added by TimoPenndorf 16 years ago.
test.mos (66 bytes ) - added by TimoPenndorf 16 years ago.

Download all attachments as: .zip

Change History (3)

by TimoPenndorf, 16 years ago

Attachment: test.mo added

by TimoPenndorf, 16 years ago

Attachment: test.mos added

comment:1 by Martin Sjölund, 14 years ago

Fixed in r5903

Note: See TracTickets for help on using tickets.