Home:ALL Converter>XML schema validation - pass schema file content as string and not as file

XML schema validation - pass schema file content as string and not as file

Ask Time:2012-09-22T19:42:15         Author:Priyanka Bhatia

Json Formatter

I am trying to validate XML file using a schema file using C programming language. Is there a way to pass/store Schema file content in char* variable. Something like below:

char *schemaContent = "complete schema file content.....";

Is there a way to attain something of this sort?

Author:Priyanka Bhatia,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/12543421/xml-schema-validation-pass-schema-file-content-as-string-and-not-as-file
yy