Home Forums General XMetaL Discussion Document.getDocumentObject() returns Null Reply To: Document.getDocumentObject() returns Null

tgoglia

Reply to: Document.getDocumentObject() returns Null

The issue just got curiouser. The same code that didn't work last Thursday is now working. I'll let you know when/if the issue pops up again and see if I can get a handle on the circumstances.

To those reading this because they're having a similar issue:

One other workaround that's easy to implement but perhaps not the most efficient is to work directly with the file.

1. Read file from disk.
2. add the new content.
3. Save the file back to disk.
4. Call _Document.reload() method of XMetal API.

Reply

Products
Downloads
Support