}
else if ( parser.getName().equals( FAQ_TAG.toString() ) )
{
if ( currentPart == null )
{
throw new XmlPullParserException( "Missing <part> at: ("
+ parser.getLineNumber() + ":" + parser.getColumnNumber() + ")" );
}
currentPart.addFaq( currentFaq );
currentFaq = null;
}
else if ( parser.getName().equals( QUESTION_TAG.toString() ) )
{
if ( currentFaq == null )
{
throw new XmlPullParserException( "Missing <faq> at: ("
+ parser.getLineNumber() + ":" + parser.getColumnNumber() + ")" );
}
buffer.append( String.valueOf( LESS_THAN ) ).append( String.valueOf( SLASH ) )
.append( parser.getName() ).append( String.valueOf( GREATER_THAN ) );
currentFaq.setQuestion( buffer.toString() );
buffer = null;
}
else if ( parser.getName().equals( ANSWER_TAG.toString() ) )
{
if ( currentFaq == null )
{
throw new XmlPullParserException( "Missing <faq> at: ("
+ parser.getLineNumber() + ":" + parser.getColumnNumber() + ")" );
}
buffer.append( String.valueOf( LESS_THAN ) ).append( String.valueOf( SLASH ) )
.append( parser.getName() ).append( String.valueOf( GREATER_THAN ) );
currentFaq.setAnswer( buffer.toString() );
buffer = null;
}
else if ( parser.getName().equals( TITLE.toString() ) )
{
if ( currentPart == null )
{
throw new XmlPullParserException( "Missing <part> at: ("
+ parser.getLineNumber() + ":" + parser.getColumnNumber() + ")" );
}
buffer.append( String.valueOf( LESS_THAN ) ).append( String.valueOf( SLASH ) )
.append( parser.getName() ).append( String.valueOf( GREATER_THAN ) );