Hey Kiran,
If you are just interested in validating simple types then this is
possible. Form the schema grammar you can do something like:
DatatypeValidatorFactory *dtvf = _schemaGrammar->getDatatypeRegistry();
then you can look DatatypeValidators up by:
DatatypeValidator *dtv = dtvf->getDatatypeValidator(typeName);
where typeName is uri,typename (except int he case in inbuilt schema
types where it is just typename).
From this you can call dtv->validate(XMLChContent);
hope this helps.
Gareth
On Mon, 24 Mar 2003, Bagepalli, Kiran wrote:
> Is there a way for me to validate the DOM content while building.
> Essentially I am interested in element and attribute content only. Does the
> value for the elements adhere to the schema. Things like default
> values/restrictive datatypes etc. Is there anyway I could get to a
> XMLElementDecl and call a validate given a value string.
>
> I do not want to validate at the end and say the whole document is not
> valid. I want to say it is not valid while building.
> I am not interested in the complicated content spec but atleast the values
> should be correct.
>
> Thanks
> Kiran
>
>
> �
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Gareth Reakes, Head of Product Development +44-1865-203192
DecisionSoft Limited http://www.decisionsoft.com
XML Development and Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]