Your SAS programs, embedded in web apps and elsewhere

SAS XML mapper data validation rule.

Accepted Solution Solved
Reply
Occasional Contributor Bal
Occasional Contributor
Posts: 18
Accepted Solution

SAS XML mapper data validation rule.

SAS XML mapper data validation rule.

Is there any way to add data validation in XML file? I have created numeric column in xml file which is calling from stored process(web service) and if I provide character value as input parameter while calling  it does not through error as wrong data.
XML 
<name column="name">
<path ......</path>
<TYPE>numeric</TYPE>
<DATATYPE>double</DATATYPE>
Where and how can I put validation here?


Accepted Solutions
Solution
‎04-01-2016 05:38 PM
Valued Guide
Posts: 3,208

Re: SAS XML mapper data validation rule.

An XML file is just character. That numeric indication has very limited meaning. It is for the XML Parser what to do with that. When that is just a serial string parser (web) nothing is garanteed.
The XSD https://en.wikipedia.org/wiki/XML_Schema_(W3C) is the one that could be used as the metadata and validation. Nothing being sure as only a recommendation.     

 

---->-- ja karman --<-----

View solution in original post


All Replies
Solution
‎04-01-2016 05:38 PM
Valued Guide
Posts: 3,208

Re: SAS XML mapper data validation rule.

An XML file is just character. That numeric indication has very limited meaning. It is for the XML Parser what to do with that. When that is just a serial string parser (web) nothing is garanteed.
The XSD https://en.wikipedia.org/wiki/XML_Schema_(W3C) is the one that could be used as the metadata and validation. Nothing being sure as only a recommendation.     

 

---->-- ja karman --<-----
Occasional Contributor Bal
Occasional Contributor
Posts: 18

Re: SAS XML mapper data validation rule.

Thank you for your quick reply.
I defined character column in XML and applied logic in STP code.
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 330 views
  • 0 likes
  • 2 in conversation