[jdom-interest] getProperty/setProperty on Parent

Elliotte Rusty Harold elharo at metalab.unc.edu
Thu Feb 19 12:35:05 PST 2004

At 2:19 PM -0600 2/19/04, Bradley S. Huffman wrote:

>In my view neither do properties like line #, column #, or even base URI.
>They're not part of the model but reflect the state of some external entity,
>in this case the source from which the document was built, if there was one.
>Yet somethings it is nice to have this info avialable. This is just a hack
>to prevent having a excessive number of instance vars.

Line number and column number are clearly useful for debugging and do 
derive from the storage entities that comprise the document. They're 
not part of the document's logical model, but they are clearly part 
of its physical model.

The base URI is officially part of the document's information set:


It's very practical and well-worth supporting.

   Elliotte Rusty Harold
   elharo at metalab.unc.edu
   Effective XML (Addison-Wesley, 2003)

More information about the jdom-interest mailing list