Performance problem when opening an xml file

remyv23remyv23 Member Posts: 9
Hi,

I have some problem when i open a xml file : opening the file is very slow. But my code is very simple.
I don't understand why it's so slow (18s to open two files < 605ko).
  FILE_DT.TEXTMODE(TRUE);
  FILE_DT.WRITEMODE(FALSE);
  FILE_LGN.TEXTMODE(TRUE);
  FILE_LGN.WRITEMODE(FALSE);
  nomFic   := 'DT_' + FORMAT("No.") + '.xml';
  nomFic2  := 'LGN_' + FORMAT("No.") + '.xml';
  pathFic  := DifParam."Param Value" + '\' + nomFic;
  pathFic2 := DifParam."Param Value" + '\' + nomFic2;
  IF NOT FILE_DT.OPEN(pathFic) THEN
    EXIT;
If somebody has an idea .... Thanks

Comments

  • rhpntrhpnt Member Posts: 688
    Try some standard NAV XMLPorts, if the problem persists buy a new PC.
  • remyv23remyv23 Member Posts: 9
    I couldn't use XMLPORT and do you realy think it's because of PC ...
  • rhpntrhpnt Member Posts: 688
    remyv23 wrote:
    I couldn't use XMLPORT
    What do you mean by that? Try the NAV data migration function...
  • remyv23remyv23 Member Posts: 9
    The file format does not allow me to use XMLport.
    Therefore I do a sequential read and that I get what I need, like a text file.

    Is it true that the larger the file the longer it takes big to open?
  • remyv23remyv23 Member Posts: 9
    has anyone ever had a similar problem ?
Sign In or Register to comment.