You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by "Dan Harvey (JIRA)" <ji...@apache.org> on 2007/09/19 15:10:44 UTC

[jira] Commented: (WODEN-113) ErrorInfo should show Line/Column nos.

    [ https://issues.apache.org/jira/browse/WODEN-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528754 ] 

Dan Harvey commented on WODEN-113:
----------------------------------

I have researched into ways of finding the line number inside Woden and found that model XML object models try and stay away from linking to the structure of the document. With DOM it is possible using a sax handler as Lawrence suggested to add line numbers to the elements as we process them or create a look up table. There is probably also a similar way to do this with OM.

Another way of possibly doing this would be to provide an XPath, possibly inside an XPointer to reference an XML document as well, to the element you want to address inside. This may not be so useful for raw output but if Eclipse, for example, could parse these out of debug messages or exceptions and directly link to it this would be quite a powerful, and far more elegant, way to do it.

One other issue I found is the current way Woden sometimes passes arguments to auxiliary functions to parse prevents the context of the XMLElement from being know so its hard to link an error to a location, getWSDLFromLocation() for example for an embedded wsdl20 document. A way of sorting this out would be to pass exceptions back up out of these functions to be caught higher up, or pass the context XMLElement down to be referenced in the case of errors.

> ErrorInfo should show Line/Column nos.
> --------------------------------------
>
>                 Key: WODEN-113
>                 URL: https://issues.apache.org/jira/browse/WODEN-113
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: John Kaputin
>            Assignee: Dan Harvey
>
> The ErrorInfo interface has methods to return the line and column number of the WSDL element or attribute in error, but currently these always return zero.  This behaviour needs to be implemented.  For the DOM implementation of Woden, maybe consider subclassing the SAX parser object and extending it to capture this information during parsing. Perhaps stored in a separate collection, keyed by element qname.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org