logo       

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

[jira] Commented: (XERCESJ-1172) Invalid ErroeList after SAX parsing when X: msg#00003

Subject: [jira] Commented: (XERCESJ-1172) Invalid ErroeList after SAX parsing when XML contains subtables
    [ 
http://issues.apache.org/jira/browse/XERCESJ-1172?page=comments#action_12419505 
] 

Michael Glavassevich commented on XERCESJ-1172:
-----------------------------------------------

Ivan, I'm not sure what an "ErrorList" is. This isn't a SAX concept nor is it 
something built by the parser so I'm going to assume this is either your 
structure or something some other application is building. If you have a 
testcase (java code) which actually exhibits a problem with the parser, please 
attach it. The zip you included only contained documents.

> Invalid ErroeList after SAX parsing when XML contains subtables
> ---------------------------------------------------------------
>
>          Key: XERCESJ-1172
>          URL: http://issues.apache.org/jira/browse/XERCESJ-1172
>      Project: Xerces2-J
>         Type: Bug

>   Components: SAX
>     Versions: 2.8.0
>  Environment: WinXP SP2, P4-2400, 1Gb RAM
> Java 2 SDK 1.5
>     Reporter: Ivan Skorodumov
>  Attachments: example.zip
>
> My XML contains a table, which contains subtable with more then one lines.
> It looks like:
> <a>
>   <b>
>       <c>
>          <d1>123</d1>
>          <d2>234</d2>
>       </c>
>       <c>
>          <d1>aaa</d1>
>          <d2>456</d2>
>       </c>
>    </b>
> </a>
> Let's consider, that field 'd1' must be a number, so, element "<d1>aaa</d1>" 
> must be an error element.
> But, if the error is in the line 2 of the subtable 'c' (in example it's 
> element "<d1>aaa</d1>"), ErrorList "says" that the error is in the line 1 (in 
> example it's element "<d1>123</d1>").
> So, for this example, after parsing with SAX parser the ErrorList will 
> contain one line, that will link to the element "a/b/c[1]/d1" with error text 
> approx. "the value 'aaa' does not appear to the element, that must be a 
> number".
> I think, it's an error, 'cause this line in the ErrorList must link to the 
> element "a/b/c[2]/d1".
> Thanks!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>