You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Hua Yang <gt...@prism.gatech.edu> on 2002/02/14 23:05:11 UTC

dom.ASBuilder [Error]: -1:-1

hi:

Somebody has asked the same question before but seems no answer.

The ASBubilder example with xerces2 doesn't return correct value for line
and column number. Always -1:-1.

It seems that getColumnNumber() and getLineNumber() function can't find the
right value to return.

Any help will be appreciated.


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


Re: dom.ASBuilder [Error]: -1:-1

Posted by John Utz <ut...@singingfish.com>.
there is an answer. it's just not a good one.

i have raised this issue previously and either sandy or elena provided the
answer:

the problem is that the schema is read into a DOM and the line number and
column number information isnt conserved.

so, the validator looks at the now DOM-ified schema and finds errors. it
reports the errors in the correct way, but the mechanism to resolve the
error back to a line/column number is unimplemented, because the
information was never saved.

it's certainly solvable, but it's not currently on anybody's list of
things to do AFAIK.

On Thu, 14 Feb 2002, Hua Yang wrote:

> hi:
> 
> Somebody has asked the same question before but seems no answer.
> 
> The ASBubilder example with xerces2 doesn't return correct value for line
> and column number. Always -1:-1.
> 
> It seems that getColumnNumber() and getLineNumber() function can't find the
> right value to return.
> 
> Any help will be appreciated.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
> 
> 


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