FXmlFile

Class representing an XML file

Windows
MacOS
Linux

References

Module

XmlParser

Header

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

Include

#include "XmlFile.h"

Syntax

class FXmlFile

Remarks

Class representing an XML file

Constructors

Name Description

Public function

FXmlFile()

Constructs the file without a path

Public function

FXmlFile

(
    const FXmlFile & rhs
)

Public function

FXmlFile

(
    const FString & InFile,
    EConstructMethod::Type ConstructMet...
)

Constructs the file with the passed path.

Destructors

Name Description

Public function

~FXmlFile()

Functions

Name Description

Public function

void

 

Clear()

Clears the file of all internals.

Public function Const

FString

 

GetLastError()

Gets the last error message from the class

Public function Const

const FXmlNo ...

 

GetRootNode()

Returns the root node of the loaded file.

Public function

FXmlNode ...

 

GetRootNode()

Returns the root node of the loaded file.

Public function Const

bool

 

IsValid()

Checks to see if a file is loaded

Public function

bool

 

LoadFile

(
    const FString & Path,
    EConstructMethod::Type ConstructMet...
)

Loads the file with the passed path.

Public function

bool

 

Save

(
    const FString & Path
)

Write to disk, UTF-16 format only at the moment

Operators

Name Description

Public function

FXmlFile &

 

operator=

(
    const FXmlFile & rhs
)

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