XML files tend to become larger and larger mostly because they are frequently used as a format for database export or for porting between different database formats. Traditional XML text editors simply cannot handle opening these huge export files, some having sizes exceeding one gigabyte, because of the necessity that all the file content must be loaded in memory before the user can actually view it.
The best performance of the viewer is obtained for encodings that use a fixed number of bytes per character, like UTF-16 or ASCII. The performance for UTF-8 is very good for documents that use mostly characters of the European languages. For the same encoding the rendering performance is high for files consisting of long lines (up to few thousands characters ) and may degrade for short lines. In fact the maximum size of a file that can be rendered in the Large File Viewer decreases when the total number of the text lines of the file increases. Trying to open a very large file, for example a file of 4 GB with a very high number of short lines (100 or 200 characters per line) may produce an OutOfMemory error which would require either increasing the Java heap memory with the -Xmx startup parameter or decreasing the total number of lines in the file.
The powerful Large File Viewer is available from the menu or as a standalone application. You can also right click a file in your project and choose to open it with the viewer. It uses an efficient structure for indexing the opened document. No information from the file is stored in the main memory, just a list of indexes in the file. In this way the viewer is capable of opening very large files, up to 10 gigabytes. If the opened file is XML, the encoding used to display the text is detected from the XML prolog of the file. In case of other files, the encoding is taken from the <oXygen/> options. See Encoding for non XML files
Large File Viewer components:
The menu bar provides menu driven access to all the features and functions available in Large File Viewer.
→ provides access for opening files in the viewer (also available in the contextual pop-up menu).
→ provides access for closing the viewer.
→ provides means to copy the selected text to clipboard (also available in the contextual pop-up menu).
→ provides access to a reduced Find Dialog. The find dialog provides some basic search options like:
When checked, operations are case sensitive.
When checked allows using any regular expression in PERL syntax.
Continues the find from the start (end) of the document after reaching the end (start) if the search is in forward (backward) direction.
→ provides access to this User Manual.
The status bar provides information about the current opened file path, the unicode representation of the character at caret position and the line and column in the opened document where the caret is located.
![]() | Warning |
---|---|
For faster computation the Large File Viewer uses a fixed font (plain, monospace font of size 12) for displaying characters. The font is not configurable from the <oXygen/> Preferences. |
![]() | Tip |
---|---|
The best performance of the viewer is accomplished for encodings that use a fixed number of bytes per character, like UTF-16 or ASCII. The performance for UTF-8 is very good for documents that use mostly characters of the European languages. For the same encoding the rendering performance is high for files consisting of short lines (Up to a few thousand characters) and may degrade for long lines. |