commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bur...@apache.org
Subject cvs commit: jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser AtomFeedParser.java
Date Fri, 30 Jul 2004 06:22:09 GMT
burton      2004/07/29 23:22:08

  Modified:    feedparser/src/java/org/apache/commons/feedparser
                        AtomFeedParser.java
  Log:
  escaped Atom content now works
  
  Revision  Changes    Path
  1.9       +6 -1      jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/AtomFeedParser.java
  
  Index: AtomFeedParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/AtomFeedParser.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AtomFeedParser.java	28 Jun 2004 01:04:37 -0000	1.8
  +++ AtomFeedParser.java	30 Jul 2004 06:22:08 -0000	1.9
  @@ -16,6 +16,8 @@
   
   package org.apache.commons.feedparser;
   
  +import org.apache.commons.feedparser.locate.*;
  +
   import java.io.*;
   import java.net.*;
   import java.util.*;
  @@ -177,7 +179,10 @@
               if ( "xml".equals( mode ) ) {
                   value = content.getText();
               } else if ( "escaped".equals( mode ) ) {
  +
  +                //need to decode the content here &lt; -> < etc.
                   value = getXMLOfContent( content.getContent() );
  +                value = EntityDecoder.decode( value );
               } else {
                   mode = "xml";
                   value = getXMLOfContent( content.getContent() );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message