示例#1
0
 public void endElement(final String name) throws XmlSyntaxException {
   if (getStartTag().equals(name)) {
     // ignore
   } else if ("LATEX".equals(name)) {
     list.add(new LatexVo(language, data));
   } else {
     throw XmlSyntaxException.createUnexpectedTagException(name);
   }
 }
示例#2
0
 public void startElement(final String name, final SimpleAttributes attributes)
     throws XmlSyntaxException {
   if (getStartTag().equals(name)) {
     // ignore
   } else if ("LATEX".equals(name)) {
     this.data = null;
     language = attributes.getString("language");
   } else {
     throw XmlSyntaxException.createUnexpectedTagException(name);
   }
 }