Results 1 to 13 of 13

Thread: MSXML parser returns "" string when program is not ran as administrator

Threaded View

  1. #1

    Thread Starter
    Member AndreiMhz's Avatar
    Join Date
    Dec 2010
    Location
    Romania
    Posts
    62

    Question MSXML parser returns "" string when program is not ran as administrator

    Hello, everybody.

    Haven't posted here in a while.
    I wrote an app that read XML files and shows them in a listview - nothing fancy.
    The user can edit the on screen table, then, using MSXML, the listview is repacked and
    the new XML is saved.

    The trouble arises in some corporate environments, where ActiveDirectory is employed.

    For some reason (limited/restricted accounts), MSXML works when reading the file,
    but not when returning the XML string required to write out the file.

    File is not saved with the .save() function directly because i use the .xml property to get the string,
    then convert it to unicode UTF8 and then save it. Files are required to be UTF8.

    Conversion to Unicode works well, this is not the point of failure.
    I know this because as i set up a "debug" version with MsgBox() before the UnicodeFileSave() procedure.
    No errors, i just a "" string before the file save, instead of the XML.

    When running as admin, though, i get the xml string from the .xml property of the MSXML object.

    This might be a Windows BUG, for all i know - i was wondering if there is a way around this....

    Thanks !
    Last edited by AndreiMhz; Oct 7th, 2022 at 03:19 AM.
    If this post solved your problem, please mark your thread as [SOLVED] and rate the post. It's a good way to show appreciation.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width