Mantis - Squeak Packages
Viewing Issue Advanced Details
3082 XML-Yaxo major always 02-24-06 14:42 10-31-07 16:25
pmm  
michael  
high  
resolved  
fixed  
none    
none  
0003082: YAXO doesn't handle text properly
YAXO XML serialization doesn't handle text properly. Run the following code to see an example, the XML generated by YAXO is not well formed and thus can not be parsed by YAXO again.

    | originalDcoument originalTop newDocument newTop |
    originalDcoument := XMLDocument new
        version: '1.0';
        encoding: 'UTF-8';
        yourself.
    originalTop := XMLElement named: 'top'.
    originalTop addContent: (XMLStringNode string: ']>><').
    originalDcoument addElement: originalTop.
    newDocument := XMLDOMParser parseDocumentFrom: (String streamContents: [ :stream |
        originalDcoument printCanonicalOn: stream ]) readStream.
    newTop := newDocument topElement.
    self assert: [ newTop characterData = ']>><' ].

Notes
(0011408)
michael   
10-31-07 16:25   
assume it's the same problems as in 0034 and now fixed in 3.8.2 and 3.9