At 23.15 15/12/2006 +0000, Vijay S. Bajwa wrote:
Say I have a schema as follows: (only a part of it):
[...]
Then ofcourse, the SAXParser reports the element name eg "msgHdr" etc as it
encounters them. However, if I'm doing schema-based parsing, should it not be
possible to get the "id" from the parser? After all, it has the full
schema map
in memory, which it is using for validation etc.
No, it looks that the "id" attribute is ignored by the schema parser.
Alberto
This would be very convenient for dumping this info into a struct as a switch
statement can be used instead of the cumbersome if (strcmp(name,
"msgHdr")==0)
etc. as I can convert the ID into a number.
Thanks for your help!
Vijay
---------------------------------------------------------------------
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]