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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback