You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xml-commons-dev@xerces.apache.org by bu...@apache.org on 2006/03/24 21:08:21 UTC
DO NOT REPLY [Bug 39098] New: - Problem parse an xml with SAX
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39098>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39098
Summary: Problem parse an xml with SAX
Product: XmlCommons
Version: 1.x
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P2
Component: SAX
AssignedTo: commons-dev@xml.apache.org
ReportedBy: qzheng@harland.net
CC: qzheng@harland.net
I have a little program which use SAX to parse the xml. The problem is that
Xerces split one xml element to two calls to characters method. Below is sample
code, xml and result.
Code:
import java.io.File;
import java.io.FileInputStream;
import org.apache.xerces.parsers.SAXParser;
import org.xml.sax.Attributes;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
public class TestSAX extends DefaultHandler {
private String currentElement = null;
/**
* @param args
*/
public static void main(String[] args) {
try
{
SAXParser parser = new SAXParser();
parser.setContentHandler(new TestSAX());
parser.parse(new InputSource(new FileInputStream(new File("C:/test.xml"))));
}
catch(Exception e)
{
e.printStackTrace();
}
}
public void characters(char[] ch, int start, int length) throws SAXException {
super.characters(ch, start, length);
if (this.currentElement.equals("CreatedDate"))
System.out.println(new String(ch, start, length));
}
public void startElement(String uri, String localName, String qName, Attributes
attributes) throws SAXException {
this.currentElement = qName;
super.startElement(uri, localName, qName, attributes);
}
}
XML:
<?xml version="1.0"?><Test><Response
ID="WEB1"><OutputArgs><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000069941]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-23
18:22:37.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000069888]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-22
19:55:37.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000069887]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-22
17:56:55.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000069648]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-20
13:39:51.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000069542]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-17
08:48:28.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000069541]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-17
08:44:35.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000069536]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-16
19:02:54.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000069534]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-16
18:57:31.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000069480]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-16
08:47:22.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000069476]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-15
17:44:45.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000069338]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-14
14:31:37.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000069278]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-14
10:01:27.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000069236]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-13
18:23:19.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000069229]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-13
17:37:00.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068841]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-08
17:23:18.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068840]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-08
17:21:21.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068838]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-08
17:14:07.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068834]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-08
16:53:47.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068708]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-07
14:44:42.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068699]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-07
14:11:26.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068693]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-07
13:44:31.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068681]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-07
12:18:19.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068656]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-07
09:55:55.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068588]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-06
12:23:46.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068580]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-06
11:56:59.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068578]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-06
11:50:52.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068568]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-06
11:35:34.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068564]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-06
11:27:24.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068561]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-06
11:18:40.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068557]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-06
11:13:08.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068556]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-06
11:02:52.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068554]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-06
10:56:43.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068550]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-06
10:46:24.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068548]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-06
10:23:33.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068544]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-06
10:12:06.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068540]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-06
09:55:30.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068537]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-06
09:35:34.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068533]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-06
09:19:04.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Billed]]></Status><CCOrderNumber><![CDATA[1300000068466]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-02
09:18:52.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068464]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-02
09:03:22.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Billed]]></Status><CCOrderNumber><![CDATA[1300000068463]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-02
08:38:35.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068458]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-01
17:29:36.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068457]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-01
17:22:39.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068455]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-01
16:38:40.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068453]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-01
15:12:42.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068451]]></CCOrderNumber><CreatedDate><![CDATA[2006-03-01
15:00:04.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068428]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-28
16:59:50.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068427]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-28
16:28:53.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068418]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-28
13:30:03.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068414]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-28
13:09:25.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068411]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-28
12:57:45.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068410]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-28
12:45:21.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068409]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-28
12:35:08.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068405]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-28
11:08:41.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068395]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-28
09:52:12.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068391]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-28
09:33:39.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068389]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-28
09:17:01.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068387]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-28
08:29:15.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068381]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-27
16:15:20.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068365]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-27
09:59:56.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068318]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-24
09:21:40.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068312]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-23
16:34:57.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068310]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-23
16:21:26.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068308]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-23
16:04:31.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068297]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-23
14:58:01.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068290]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-23
14:40:29.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068275]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-23
14:13:22.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Billed]]></Status><CCOrderNumber><![CDATA[1300000068254]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-23
13:11:56.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068250]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-23
12:56:14.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068233]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-23
10:09:07.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Billed]]></Status><CCOrderNumber><![CDATA[1300000068226]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-23
09:45:19.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068224]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-23
08:59:57.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068221]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-23
08:35:27.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068219]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-22
18:04:22.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068218]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-22
17:43:49.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068214]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-22
14:20:34.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut><OutPut><Status><![CDATA[Submitted]]></Status><CCOrderNumber><![CDATA[1300000068212]]></CCOrderNumber><CreatedDate><![CDATA[2006-02-22
13:55:48.000000]]></CreatedDate><OrderedBy><![CDATA[John
Doe]]></OrderedBy></OutPut></OutputArgs></Response></Test>
Result:
2006-03-23 18:22:37.000000
2006-03-22 19:55:37.000000
2006-03-22 17:56:55.000000
2006-03-20 13:39:51.000000
2006-03-17 08:48:28.000000
2006-03-17 08:44:35.000000
2006-03-16 19:02:54.000000
2006-03-16 18:57:31.000000
2006-03-16 08:47:22.000000
2006-03-15 17:44:45.000000
2006-03-14 14:31:37.000000
2006-03-14 10:01:27.000000
2006-03-13 18:23:19.000000
2006-03-13 17:37:00.000000
2006-03-08 17:23:18.000000
2006-03-08 17:21:21.000000
2006-03-08 17:14:07.000000
2006-03-08 16:53:47.000000
2006-03-07 14:44:42.000000
2006-03-07 14:11:26.000000
2006-03-07 13:44:31.000000
2006-03-07 12:18:19.000000
2006-03-07 09:55:55.000000
2006-03-06 12:23:46.000000
2006-03-06 11:56:59.000000
2006-03-06 11:50:52.000000
2006-03-06 11:35:34.000000
2006-03-06 11:27:24.000000
2006-03-06 11:18:40.000000
2006-03-06 11:13:08.000000
2006-03-06 11:02:52.000000
2006-03-06 10:56:43.000000
2006-03-06 10:46:24.000000
2006-03-06 10:23:33.000000
2006-03-06 10:12:06.000000
2006-03-06 09:55:30.000000
2006-03-06 09:35:34.000000
2006-03-06 09:19:04.000000
2006-03-02 09:18:52.000000
2006-03-02 09:03:22.000000
2006-03-02 08:38:35.000000
2006-03-01 17:29:36.000000
2006-03-01 17:22:39.000000
2006-03-01 16:38:40.000000
2006-03-01 15:12:42.000000
2006-03-01 15:00:04.000000
2006-0
2-28 16:59:50.000000
2006-02-28 16:28:53.000000
2006-02-28 13:30:03.000000
2006-02-28 13:09:25.000000
2006-02-28 12:57:45.000000
2006-02-28 12:45:21.000000
2006-02-28 12:35:08.000000
2006-02-28 11:08:41.000000
2006-02-28 09:52:12.000000
2006-02-28 09:33:39.000000
2006-02-28 09:17:01.000000
2006-02-28 08:29:15.000000
2006-02-27 16:15:20.000000
2006-02-27 09:59:56.000000
2006-02-24 09:21:40.000000
2006-02-23 16:34:57.000000
2006-02-23 16:21:26.000000
2006-02-23 16:04:31.000000
2006-02-23 14:58:01.000000
2006-02-23 14:40:29.000000
2006-02-23 14:13:22.000000
2006-02-23 13:11:56.000000
2006-02-23 12:56:14.000000
2006-02-23 10:09:07.000000
2006-02-23 09:45:19.000000
2006-02-23 08:59:57.000000
2006-02-23 08:35:27.000000
2006-02-22 18:04:22.000000
2006-0
2-22 17:43:49.000000
2006-02-22 14:20:34.000000
2006-02-22 13:55:48.000000
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 39098] - Problem parse an xml with SAX
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39098>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39098
mrglavas@ca.ibm.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From mrglavas@ca.ibm.com 2006-03-24 20:17 -------
characters() may be called multiple times for contiguous text. Your
ContentHandler needs to accumulate the text returned in each call of characters
() until you receive a callback that isn't characters. This is probably the
single most common SAX usage error...
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 39098] - Problem parse an xml with SAX
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39098>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39098
------- Additional Comments From qzheng@harland.net 2006-03-24 20:10 -------
Created an attachment (id=17974)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=17974&action=view)
test case
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 39098] - Problem parse an xml with SAX
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39098>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39098
------- Additional Comments From qzheng@harland.net 2006-03-24 20:09 -------
Created an attachment (id=17973)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=17973&action=view)
test xml file
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.