::dom::DOMImplementation serialize xml is not readable with dom::parse !!
Here is a test :
set xml "<test>COUCOU</test>"
set doc [dom::parse $xml]
set fileid [open test.xml w+]
puts $fileid [::dom::DOMImplementation serialize $doc]
close $fileid
set fileid [open test.xml r]
set xml [read $fileid]
close $fileid
set doc [dom::parse $xml]
invalid QName "::dom::tcl::document4::Document"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
::dom::DOMImplementation serialize xml is not readable with dom::parse !!
Here is a test :
set xml "<test>COUCOU</test>"
set doc [dom::parse $xml]
set fileid [open test.xml w+]
puts $fileid [::dom::DOMImplementation serialize $doc]
close $fileid
set fileid [open test.xml r]
set xml [read $fileid]
close $fileid
set doc [dom::parse $xml]
invalid QName "::dom::tcl::document4::Document"