• Open and validate large XML

Open and validate large XML

Please note: All of the functionality of the Large File viewer is now also available in the standard editor window. Simply open large documents like any other file. You can also use the built-in File explorer if you just want to validate huge XML data.
XML ValidatorBuddy provides support for huge XML documents (multi-GB) to open and validate those files directly in the application. Regardless of the size of the document, the application will always use about the same amount of memory to view the file. XML ValidatorBuddy does not need to keep the complete file in memory to validate or to show the XML instance within the application.
The Large File Viewer component is a separate tab window inside of XML ValidatorBuddy and can display one document at the same time. The screen-shot below shows a generated directory list as XML with some validation errors:
Open a huge XML file
To open a huge document, or also smaller ones, the application provides the "Open in Large File Viewer" command on the main Toolbar. This command opens the currently selected file in the File Explorer in the Large File Viewer window.
Syntax coloring is used to draw the text, to increase the readability of the XML content. This makes it easy to distinguish between element names, attributes, values and comments. A control on the left side of the window shows the line numbers of the visible area and allows to scroll quickly through the whole document.
It is also possible to scroll the file content by placing the cursor inside of the XML text and using the usual cursor up and down or the page up and down keys.
XML ValidatorBuddy tries to detect if the file uses UTF-8 or UTF-16 encoding. If the encoding can't be detected it can be set using the Encoding-Listbox. The file content will be displayed immediately in the selected encoding.
Please note that changing the encoding here doesn't change the encoding of the file on disk.
Find text in file
Use the find controls to locate any string in the document. The find operation will always start at the current cursor position and the search direction is downwards to the bottom of the file.
The "Match case" check can be set to compare the strings case-sensitive.
After the first matching string is found you can use F3 to find the next match. If the find operation has reached the end of the file a message box is displayed.
Copy to clipboard
You can use the Copy command from the Toolbar or the Ctrl+C keyboard shortcut to copy the current selection to the clipboard.
Validate huge XML files
Use the "Validate file" command from the XML menu, the toolbar or press the F8 key to validate the current document against any schema which is assigned to the XML instance file. If the file is not valid, one or more error messages will appear in the results window on the bottom of the Large File Viewer. Every message with a line number can be selected with a left-button mouse click to jump directly to the position in the document where the error occured.
Well-formed XML
To check if the XML document is well-formed use the "Check if well-formed" command from the XML menu, the toolbar or press F7. If the XML is not well-formed, the list of errors is shown in the results window again. On success, the results window shows a message which says that the file is well-formed.