IFastXmlCallback

Create your own class that implements the [IFastXmlCallback](API\Runtime\XmlParser\IFastXmlCallback) interface to process the XML elements as they are loaded by [FFastXml::ParseXmlFile()](API\Runtime\XmlParser\FFastXml\ParseXmlFile).

Windows
MacOS
Linux

References

Module

XmlParser

Header

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

Include

#include "FastXml.h"

Syntax

class IFastXmlCallback

Remarks

Create your own class that implements the IFastXmlCallback interface to process the XML elements as they are loaded by FFastXml::ParseXmlFile(). You'll receive a ProcessElement() call for every XML element that is encountered, along with a corresponding ProcessClose() when that element's scope has ended. ProcessAttribute() will be called for any attributes found within the scope of the current element.

Functions

Name Description

Public function

bool

 

ProcessAttribute

(
    const TCHAR* AttributeName,
    const TCHAR* AttributeValue
)

Called when an XML attribute is encountered for the current scope's element.

Public function

bool

 

ProcessClose

(
    const TCHAR* Element
)

Called when an element's scope ends in the XML file

Public function

bool

 

ProcessComment

(
    const TCHAR* Comment
)

Called when a comment is encountered. This can happen pretty much anywhere in the file.

Public function

bool

 

ProcessElement

(
    const TCHAR* ElementName,
    const TCHAR* ElementData,
    int32 XmlFileLineNumber
)

Called when a new XML element is encountered, starting a new scope.

Public function

bool

 

ProcessXmlDeclaration

(
    const TCHAR* ElementData,
    int32 XmlFileLineNumber
)

Called after the XML's header is parsed. This is usually the first call that you'll get back.

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