DATA Step, Macro, Functions and more

Validate an output XML with XML Schema (xsd)

Reply
Learner
Posts: 1

Validate an output XML with XML Schema (xsd)

Hello experts!

 

I create simple XML file in my SAS program:

 

data _null_;
	file "C:\persons.xml";
	put "<?xml version=""1.0"" encoding=""UTF-8""?>";
	put "<Person>";
	put "<Name>John</Name>";
	put "<Age>32</Age>";
	put "</Person>";
run;

 

And I have XML Schema (xsd file). I want to validate my file with schema and put error if the file does not match the shema.

Is it possible?

 

Thanks in advance!

 

Grisha 

 

Ask a Question
Discussion stats
  • 0 replies
  • 319 views
  • 0 likes
  • 1 in conversation