locked
Validate Xml file against XSD RRS feed

  • Question

  • Hello Friends ..
    I want to validate an xml file using xsd....I want to validate such that for some values my input should be a decimal with 2 precision..for example if i give 25 instead of 25.00 then i should get error...is there any possibility like that? 
    • Moved by Reymarx Gereda Monday, July 13, 2009 2:21 PM off topic (From:Network Class Library (System.Net))
    • Moved by nobugz Tuesday, July 14, 2009 12:50 AM xml q (From:.NET Base Class Library)
    Monday, July 13, 2009 6:10 AM

Answers

  • In your xsd you can use regular expressions to validate the input. Looks like a good solution in your case.

    Pawel
    Wednesday, July 15, 2009 4:13 PM
    Moderator