how to read the source of LocalFS-File-Object
Dear list, 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. I would like to get the same content with the tags that I see in the text-area when I click on 'file.xml' link in the ZMI-screen in the LocalFS Folders. I could not find how to get this myself. It must be related to the manage_workspace and the getattr methods but all my effords did not work. so some hint would be great. Thanks, Elena
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
participants (2)
-
Dieter Maurer -
Elena Schulz