M
Moqtar
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>200607120616</jobtime>
<Directory>
<dirname>C:\Program Files\Acorden SourceXT</dirname>
<file>
<name>readme.txt</name>
<time>200011041444</time>
</file></Directory>
<Directory>
<dirname>C:\Program Files\Yahoo</dirname>
</Directory>
</job>
the code works. But if the directoryname of file name contains the
character "&" .
for eg. <dirname>C:\Program Files\LetterSize B&W</dirname>
it gives an error. i cannot view the xml document.
document of type
<?xml version="1.0" encoding="ISO-8859-1"?>
<job>
<jobname>Test</jobname>
<jobtime>200607120616</jobtime>
<Directory>
<dirname>C:\Program Files\Acorden SourceXT</dirname>
<file>
<name>readme.txt</name>
<time>200011041444</time>
</file></Directory>
<Directory>
<dirname>C:\Program Files\Yahoo</dirname>
</Directory>
</job>
the code works. But if the directoryname of file name contains the
character "&" .
for eg. <dirname>C:\Program Files\LetterSize B&W</dirname>
it gives an error. i cannot view the xml document.