DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7431>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7431 Error in parsing xml document Summary: Error in parsing xml document Product: Xerces2-J Version: 2.0.1 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Critical Priority: Other Component: SAX AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Please refer to the errors below in the xml document with element name REMARKS, seems that the parser calls the character method in the DefaultHandler once it parses this char "]". This is the method I used in the defaulthandler: public void characters(char[] ch, int start, int length) { String data = String.valueOf(ch, start, length).trim(); System.out.println("|"+data+"|"); } And further more, why is the white space not ignored outside the tags? There is no such error in xerces version 1.4.4. And those white spaces outside the tags are not handled using the ignorewhitespace method. Is there a change in the standards? Why is it not updated in the API documentation or anywhere else? MY XML DOCUMENT: <?xml version="1.0" encoding="UTF-8"?> <Order xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:order_test.xsd"> <Header> <PartnerID>2</PartnerID> <ProjectID>1</ProjectID> <BatchNo>0001</BatchNo> </Header> <ChangePackage> <OrderInfo> <UserID>p0001516</UserID> <ActionCode>P</ActionCode> <OrderType>CHPK</OrderType> <PkgID>0291</PkgID> <PkgType>LOS</PkgType> <PlanID/> <PlanType/> <App_Received_Date>2001-11-27</App_Received_Date> <ReqDate>2001-11-27</ReqDate> <Reg_Fee>0</Reg_Fee> ******Error occurs here during parsing********************** <REMARKS>abc]</REMARKS> ************************************************************ </OrderInfo> <Trailer> <TotalChangePackage>2</TotalChangePackage> </Trailer> </ChangePackage> </Order> MY OUTPUT from the parser: <Order> || <Header> || <PartnerID> |2| || <ProjectID> |1| || <BatchNo> |0001| || || <ChangePackage> || <OrderInfo> || <UserID> |p0001516| || <ActionCode> |P| || <OrderType> |CHPK| || <PkgID> |0291| || <PkgType> |LOS| || <PlanID> || <PlanType> || <App_Received_Date> |2001-11-27| || <ReqDate> |2001-11-27| || <Reg_Fee> |0| || <Remarks> |abc| |]| || || <Trailer> || <TotalChangePackage> |2| || || || --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
