Do you think i am using the right methods to validate my xml with boolean
and dates

  impl =  DOMImplementationRegistry::getDOMImplementation(X("core"));
 m_ConfigFileParser = new XercesDOMParser;
 m_ConfigFileParser->setDoSchema(true);
       m_ConfigFileParser->setValidationScheme(XercesDOMParser::Val_Never);
       m_ConfigFileParser->setDoNamespaces(true);
m_ConfigFileParser->setExternalNoNamespaceSchemaLocation("sample.xsd");
       m_ConfigFileParser->loadGrammar("sample.xsd",
Grammar::SchemaGrammarType, true);
 m_ConfigFileParser->parse("same.xml");
in this my xml does not have right date which has minoccurs=1 but it comes
out as valid doc....

right now(valid or invalid),whatever i change to xml,outcome looks the same

how do i check if my parser returned valid xml or not????????


Thanks,
SS


On Fri, Aug 14, 2009 at 10:58 AM, David Bertoni <[email protected]> wrote:

> ss ak wrote:
>
>> ok..thanks...
>>
>> but the when we are validating with XSD,boolean fields are not
>> checked?????
>>
> Yes, they are checked.
>
> my xml will be valid,if i give any text data in boolean...please let me
>> know
>> how the XercesDomParser works???
>>
> You can construct the document however you like.  To validate it, you'll
> need to serialize it and parse it using your schema.
>
> Dave
>

Reply via email to