W
Wes Batson
I am trying to parse data from the following xml file:
<?xml version+"1.0"?>
<Data>
<coName>Company Name</coName>
<coAdd>Company Address</coAdd>
</Data>
Here is my characters() method:
public void characters(char[] ch, int start, int length) throws
SAXException{
stringarray[position] = new String(ch, start, length);
}
Later I print out the stringarray. I have seen in every example that
overriding the characters() method should grab the data inside the
tags. However, I have noticed that when characters() is called each
time the char[] ch is an empty string. I was curious if anyone has
had this problem before.
Thanks in advance,
WWB
<?xml version+"1.0"?>
<Data>
<coName>Company Name</coName>
<coAdd>Company Address</coAdd>
</Data>
Here is my characters() method:
public void characters(char[] ch, int start, int length) throws
SAXException{
stringarray[position] = new String(ch, start, length);
}
Later I print out the stringarray. I have seen in every example that
overriding the characters() method should grab the data inside the
tags. However, I have noticed that when characters() is called each
time the char[] ch is an empty string. I was curious if anyone has
had this problem before.
Thanks in advance,
WWB