Hi,
I am using queryexample2.java from the sample API implementation. I am
trying to extract the self closing<link /> tag and unable to parse it
with the given code. this code uses the SAX parser.
Here are the overrides for the startElement and endElement methods
public void startElement(String uri, String localName, String qName,
Attributes attributes) throws SAXException {
if (qName.equals("updated") &&
xmlTags.peek().equals("entry")) {
insideEntryTitle = true;
}
xmlTags.push(qName);
//System.out.println(qName);
}
public void endElement(String uri, String localName, String qName)
throws SAXException {
// If a "title" element is closed, we start a new line, to
prepare
// printing the new title.
xmlTags.pop();
if (insideEntryTitle) {
insideEntryTitle = false;
System.out.println();
}
}
Thanks for all the help
--
You received this message because you are subscribed to the Google Groups
"Google Base Data API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-base-data-api?hl=en.