Navigation
API > API/Runtime > API/Runtime/XmlParser
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.
| Name | IFastXmlCallback |
| Type | class |
| Header File | /Engine/Source/Runtime/XmlParser/Public/FastXml.h |
| Include Path | #include "FastXml.h" |
Syntax
class IFastXmlCallback
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool ProcessAttribute
(
const TCHAR* AttributeName, |
Called when an XML attribute is encountered for the current scope's element. | FastXml.h | |
bool ProcessClose
(
const TCHAR* Element |
Called when an element's scope ends in the XML file | FastXml.h | |
bool ProcessComment
(
const TCHAR* Comment |
Called when a comment is encountered. This can happen pretty much anywhere in the file. | FastXml.h | |
bool ProcessElement
(
const TCHAR* ElementName, |
Called when a new XML element is encountered, starting a new scope. | FastXml.h | |
bool ProcessXmlDeclaration
(
const TCHAR* ElementData, |
Called after the XML's header is parsed. This is usually the first call that you'll get back. | FastXml.h |