diff --git a/src/perl/make_xmlwritecode.pl b/src/perl/make_xmlwritecode.pl --- a/src/perl/make_xmlwritecode.pl +++ b/src/perl/make_xmlwritecode.pl @@ -171,52 +171,51 @@ print xmlsrc <) { - chomp; - s/\\/\\\\/g; - s/\"/\\\"/g; - s/\&/\&/g; - $str.=$_."\\n"; - } - $str .= "\";\n"; - return $str; - } + open srcfile, "<$fname"; + while () { + chomp; + s/\\/\\\\/g; + s/\"/\\\"/g; + s/\&/\&/g; + $str.=$_."\\n"; + } + $str .= "\";\n"; + return $str; +} - print xmlsrc "xmlChar *sourcecode = (xmlChar *)\"".construct_string_constant_from_file( "$mainsource" ); - print xmlsrc <