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 Sir Woody Hackswell <wo...@hackswell.com> on 2003/04/30 21:34:12 UTC

Schema Annotation

Hello again!

I'm still trying to crunch out SchemaAnnotation class. :)

I have a few general questions.

1) Is a SchemaElementDecl guaranteed to be invalid after a SchemaGrammar 
goes out of scope.  I'm guessing yes, but want to confirm.

Assuming I'm right with #1: 

2) I have an implementation that works, but each SchemaAnnotation has its
own document to hold the annotation DOMNodes internally. Wasteful.  I know
TraverseSchema has a DOMParser (and in turn a DOMDocument).  Would it be
possible to move the DOMParser to be owned by the SchemaGrammar instead so
that both the TraverseSchema and SchemaAnnotation classes can use the same
DOMDocument as a base for their nodes?

This way, only one DOMParser/Document needs to be created for the whole 
process.  TraverseSchema uses it anyway; I'm just suggesting that we move it 
to SchemaGrammar instead.  Then, if a user needs serialized annotations, we 
already have the DOMNodes in memory and can serialize, else, we pull in the 
new document and deep clone the nodes out for a DOM implementation.

Comments? Suggestions? Criticisms? Jokes?

-Richard!



-----
If you could delete the recycle bin, where would it go?

Sir.Woody@Hackswell.com       http://sir.woody.hackswell.com


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org