FFastXml

Fast XML parser based on John W.

Windows
MacOS
Linux

References

Module

XmlParser

Header

/Engine/Source/Runtime/XmlParser/Public/FastXml.h

Include

#include "FastXml.h"

Syntax

class FFastXml

Remarks

Fast XML parser based on John W. Ratcliff's "FastXml" (see FastXml.tps and http://codesuppository.blogspot.com/2009/02/fastxml-extremely-lightweight-stream.html)

This is a simple XML parser that can load XML files very quickly. The class has a single static method, ParseXmlFile() for loading XML files. The parser is designed to load files efficiently, but may not support all XML features or be resilient to malformed data. Unlike the FXmlFile class, FFastXml does not generate an XML node tree. Instead, you must supply a callback class using IFastXmlCallback and respond to elements and attributes as they are parsed. Call the ParseXmlFile() function and pass in either the full path to the XML file to parse (XmlFilePath parameter), or load the file yourself and pass the contents using the XmlFileContents parameter. One of either XmlFilePath or XmlFileContents must be valid for ParseXmlFile() to work.

Remember to add a module dependency on "XmlParser" in order to be able to call FFastXml::ParserXmlFile().

Functions

Name Description

Public function Static

bool

 

ParseXmlFile

(
    IFastXmlCallback* Callback,
    const TCHAR* XmlFilePath,
    TCHAR* XmlFileContents,
    FFeedbackContext* FeedbackCont...,
    const bool bShowSlowTaskDialog,
    const bool bShowCancelButton,
    FText& OutErrorMessage,
    int32& OutErrorLineNumber
)

Quickly parse an XML file.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss