Download

Identifier "FXmlFile" is undefined

Hi all,

I am trying to parse a XML file and I am getting some VS editor errors…

#include “XmlParser.h” is giving a ‘cannot open source file’ error.
…and subsequent lines like, const FXmlFile file(L"D:/file.xml"); are giving ‘identifier is undefined’.

I have the dependencies configured within the .Build.cs like so: PublicDependencyModuleNames.AddRange(new string] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “XmlParser” }).

The project is building fine and I am able to get the data out corrctly, so I’m thinking it is purely a VS issue?! Is there anything i should be configuring with VS?

Cheers,
Matt.

You may need to regenerate your project files. These files (.sln) are for VS only and engine itself doesn’t use them when building your project.
Every module you specified as dependency will add additional folder for VS to search for #include files

Many thanks for this, it did the trick!

  • Matt.

Hello
I have the same problem.
My dependencyModuleNames looks like this: PublicDependencyModuleNames.AddRange(new string] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “XmlParser” });
Then I attach #include “FXmlFile.h” to my header file and I still get the error “cannot open source file” even after regenerating the project files.
I have this problem with all module I try to attach to the project.
i dont know what I am missing.
Thanks for help