Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
XMLFix.cpp File Reference
#include "precompiled.h"
#include "XMLFix.h"
#include "CommonConvert.h"
#include "FUtils/FUXmlParser.h"
#include <libxml/parser.h>
Include dependency graph for XMLFix.cpp:

Functions

static xmlNode * findChildElement (xmlNode *node, const char *name)
 
static bool applyFBXFixesNode (xmlNode *node)
 
static bool applyFBXFixes (xmlNode *root)
 
static bool processDocument (xmlNode *root)
 
void FixBrokenXML (const char *text, const char **out, size_t *outSize)
 Fixes some errors in COLLADA XML files that would otherwise prevent FCollada from loading them successfully. More...
 

Function Documentation

◆ applyFBXFixes()

static bool applyFBXFixes ( xmlNode *  root)
static

◆ applyFBXFixesNode()

static bool applyFBXFixesNode ( xmlNode *  node)
static

◆ findChildElement()

static xmlNode * findChildElement ( xmlNode *  node,
const char *  name 
)
static

◆ FixBrokenXML()

void FixBrokenXML ( const char *  text,
const char **  out,
size_t *  outSize 
)

Fixes some errors in COLLADA XML files that would otherwise prevent FCollada from loading them successfully.

'out' is either a new XML document, which must be freed with xmlFree; otherwise it is equal to 'text' if no changes were made.

◆ processDocument()

static bool processDocument ( xmlNode *  root)
static