[Zope] how to read the source of LocalFS-File-Object

Dieter Maurer dieter@handshake.de
Sun, 9 Dec 2001 23:10:09 +0100


Elena Schulz writes:
 > I try to read the source of a xml-File in a LocalFS-Folder on a win98 PC. 
 > 
 > With:
 > 
 > object = sourcePath['folderA']['folderB']['file.xml'] 
 > source = object.document_src()
 > 
 > I get the content of the 'file.xml' but without the xml-tags which I need.
Are you sure? (I do not believe it...)

   If you use '<dtml-var "object.document_src()">', you will get
   the source with XML tags but when you view this through an
   HTML browser, it will look like the tags were missing (because
   the browser does not understand and therefore ignores them).

   Try: '<dtml-var "object.document_src()" html_quote>'


Dieter