Menu

Createing very large XML document

2016-08-01
2016-09-13
  • Kevin Loughran

    Kevin Loughran - 2016-08-01

    Using XMLI and find it very easy to use.
    I have one problem.
    I need to create an xml document > 16,000,000 bytes.
    I am using your technique from page 6-7 of the user guide by using a pointer, and writing/appending to the IFS.The program is creating the XML document on the IFS , but the program is halting in procedure xmli_addelement/xmli_opentag at statement 13004.
    The program is not going to a normal end.
    the variable indent is exceeding 65535 and the xml document on the IFS is incomplete.
    Any ideas?
    Thanks
    Kevin


     
  • Kevin Loughran

    Kevin Loughran - 2016-09-13

    I finally solved the problem.
    There seem to be a problem/bug using the xmli_addelement() procedure. When you gererate a large xml doucment and you call this procedure more that 65535 times the program throws an overflow error.
    Instead of using xmli_addelemement() using
    xmli_openTag() , xmli_addData(), xmli_closeTag() seems to work.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.