Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
XMLFix.cpp File Reference
#include "precompiled.h"
#include "XMLFix.h"
#include "CommonConvert.h"
#include "FUtils/FUXmlParser.h"

Go to the source code of this file.

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

static bool applyFBXFixes ( xmlNode *  root)
static

Definition at line 93 of file XMLFix.cpp.

static bool applyFBXFixesNode ( xmlNode *  node)
static

Definition at line 66 of file XMLFix.cpp.

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

Definition at line 56 of file XMLFix.cpp.

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.

Definition at line 164 of file XMLFix.cpp.

static bool processDocument ( xmlNode *  root)
static

Definition at line 144 of file XMLFix.cpp.