I am using python to walk a directory and write the filename in an xml
document of type
<?xml version="1.0" encoding="ISO-8859-1"?>
<job>
<jobname>Test </jobname>
<jobtime>200607 120616</jobtime>
<Directory>
<dirname>C:\Pro gram Files\Acorden SourceXT</dirname>
<file>
<name>readme.tx t</name>
<time>200011041 444</time>
</file></Directory>
<Directory>
<dirname>C:\Pro gram Files\Yahoo</dirname>
</Directory>
</job>
the code works. But if the directoryname of file name contains the
character "&" .
for eg. <dirname>C:\Pro gram Files\LetterSiz e B&W</dirname>
it gives an error. i cannot view the xml document.
Comment