UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FXmlNode Class Reference

#include <XmlNode.h>

Public Member Functions

XMLPARSER_API const FXmlNodeGetNextNode () const
 
XMLPARSER_API const TArray< FXmlNode * > & GetChildrenNodes () const
 
XMLPARSER_API const FXmlNodeGetFirstChildNode () const
 
XMLPARSER_API const FXmlNodeFindChildNode (const FString &InTag) const
 
XMLPARSER_API FXmlNodeFindChildNode (const FString &InTag)
 
XMLPARSER_API const FString & GetTag () const
 
XMLPARSER_API const FString & GetContent () const
 
XMLPARSER_API void SetContent (const FString &InContent)
 
XMLPARSER_API void SetAttributes (const TArray< FXmlAttribute > &InAttributes)
 
const TArray< FXmlAttribute > & GetAttributes () const
 
XMLPARSER_API FString GetAttribute (const FString &InTag) const
 
XMLPARSER_API void AppendChildNode (const FString &InTag, const FString &InContent=FString(), const TArray< FXmlAttribute > &InAttributes=TArray< FXmlAttribute >())
 

Friends

class FXmlFile
 

Detailed Description

Xml Node representing a line in an xml file

Member Function Documentation

◆ AppendChildNode()

void FXmlNode::AppendChildNode ( const FString &  InTag,
const FString &  InContent = FString(),
const TArray< FXmlAttribute > &  InAttributes = TArray<FXmlAttribute>() 
)

Adds a child node to this node

Parameters
InTagThe tag of the child node
InContent(optional) The content of the child node
InAttributes(optional) An array of attributes of the child node

◆ FindChildNode() [1/2]

FXmlNode * FXmlNode::FindChildNode ( const FString &  InTag)

Finds the first child node that contains the specified tag

◆ FindChildNode() [2/2]

const FXmlNode * FXmlNode::FindChildNode ( const FString &  InTag) const

Finds the first child node that contains the specified tag

◆ GetAttribute()

FString FXmlNode::GetAttribute ( const FString &  InTag) const

Gets an attribute that corresponds with the passed-in tag

◆ GetAttributes()

const TArray< FXmlAttribute > & FXmlNode::GetAttributes ( ) const
inline

Gets all of the attributes in this node

Returns
List of attributes in this node

◆ GetChildrenNodes()

const TArray< FXmlNode * > & FXmlNode::GetChildrenNodes ( ) const

Gets a list of children nodes

◆ GetContent()

const FString & FXmlNode::GetContent ( ) const

Gets the value of the node

◆ GetFirstChildNode()

const FXmlNode * FXmlNode::GetFirstChildNode ( ) const

Gets the first child of this node which can be iterated into with GetNextNode

◆ GetNextNode()

const FXmlNode * FXmlNode::GetNextNode ( ) const

Gets the next node in a list of nodes

◆ GetTag()

const FString & FXmlNode::GetTag ( ) const

Gets the tag of the node

◆ SetAttributes()

void FXmlNode::SetAttributes ( const TArray< FXmlAttribute > &  InAttributes)

Sets the attributes of the node

◆ SetContent()

void FXmlNode::SetContent ( const FString &  InContent)

Sets the new value of the node

Friends And Related Symbol Documentation

◆ FXmlFile

friend class FXmlFile
friend

The documentation for this class was generated from the following files: