You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Thomas Conradi <co...@prostep.de> on 2000/06/07 15:22:20 UTC

Re: newbie: #REQUIRED raises error?

did you register an errorhandler?

Ingo Assenmacher wrote:

> Hi.
>
> I am currently playing around with the DOM-Parser as provided in the
> example:
>
> DOMPrint.cpp within the xerces-1.1.0-src tree on win32 (using
> xerces-c_1.lib
> on VC++6 on NT4, SP5)
>
> I have an dtd in which a certain attribute is required (with #REQUIRED):
>
> <!ATTLIST part
>           name   NMTOKEN                    #IMPLIED
>           class  NMTOKEN                    #REQUIRED
>           source CDATA                      #IMPLIED
>           how    (append|cascade|replace)   "replace"
>           export (hidden|optional|required) "optional">
>
> but providing an element with:
>
> <part name="TopHello">
>
> is printed with:
>
> <part how = "replace" name = "TopHello" export = "optional">
>
> and no notice of an error.
> Ok. Where is my mistake? Do I have to care for these things if I want to
> create an post-processor based on DOM?
>
> Thank you very much for any help.
>
> Regards, Ingo.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org

--
___________________________________________________________________________

ProSTEP GmbH                        Phone: +49-6151-9287381
Thomas Conradi                      Fax:   +49-6151-9287381
Dolivostr. 11                       Email: conradi@prostep.de
D-64293 Darmstadt
___________________________________________________________________________