Navigation
Unreal Engine C++ API Reference > Runtime > XmlParser
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
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | ParseXmlFile
(
IFastXmlCallback* Callback, |
Quickly parse an XML file. |