Mathias, 'Scuse me for butting in but...
Is there a reason why you want to validate when reading but not use the schema default values. I can see advantages in either having both or having none ... At 12/11/2003 12:20 Wednesday, Mathias Mueller wrote: >Hi Anton, > >yeah, this command does it. >I had to force him to convert the DOMNode to DOMAttr, but it works. :) > >Thanks for the quick help. > >Mathias > >P.S. I strangely received your mail 3 times. Any idea why? > >> Hi Mathias, >> >> you can add a check on your attributes: >> if (pAttr->getSpecified()) returns false, it's a default value from the >> DTD >> >> <include/DOM/DOMAttr.hpp> >> >> HTH, >> Anton >> >> ----- Original Message ----- >> From: "Mathias Mueller" <[EMAIL PROTECTED]> >> To: <[EMAIL PROTECTED]> >> Sent: Wednesday, November 12, 2003 12:51 PM >> Subject: Default Values >> >> >> Hi, >> >> I am using the XercesDOMParser with validation. >> >> The Parser is not only reading out the information stored in the XML-file >> but also all the not stored attributes with their default values. >> >> No I wanna know how to turn that of. >> >> I have the default values stored in my own structure and it would save me >> a lot of work at runtime not to read out all attributes. >> Especially since not all attributes have a default value I would be forced >> to write code for ignoring them. >> >> Can anybody help me with this? >> >> with kind regards >> >> Mathias Mueller >> Rostock Germany - Olympia 2012 >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] Graham Mann Adobe Systems Europe Ltd. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
