From: Steve B. <Ste...@zv...> - 2002-09-06 23:06:19
|
Derek Fountain wrote: > Given a small piece of XML like this: > > <?xml version="1.0" encoding="utf-8" standalone="no"?> > <?xml-stylesheet type="text/xsl" href="test_view.xsl"?> > <!DOCTYPE test SYSTEM "test.dtd"> > <test /> > > I serialise it using Activetcl-8.3.4.3 and tcldom-2.2 with this: > > #!/bin/sh > # \ > exec tclsh8.3 "$0" "$@" > > package require xml > package require dom > > while {[gets stdin line] != -1} { > append xml $line > } > set doc [::dom::DOMImplementation parse $xml] > puts [::dom::DOMImplementation serialize $doc] > > which prints me this: > > <?xml version='1.0'?> > <!DOCTYPE test> > <test/> > > Lots of detail has disappeared. What do I need to do to get the detail back? Please submit a bug report on SF. This will require investigation to determine whether TclXML or TclDOM is losing the data. Cheers, Steve Ball -- Steve Ball | XSLT Standard Library | Training & Seminars Zveno Pty Ltd | Web Tcl Complete | XML XSL Schemas http://www.zveno.com/ | TclXML TclDOM | Tcl, Web Development Ste...@zv... +---------------------------+--------------------- Ph. +61 2 6242 4099 | Mobile (0413) 594 462 | Fax +61 2 6242 4099 |