LJ Rss Feeds
Maybe someone can help me out on here. I am trying to pull one of my LJ into a website through an rss feed, but I want a little control via the categories so I only get the stuff I want. I basically want to filter out notices and blank category entries. I tried an if statement around the output, but that just failed. Any help?
[Error: Irreparable invalid markup ('<cfset [...] "/rss/channel/item")>') in entry. Owner must fix manually. Raw contents below.]
Maybe someone can help me out on here. I am trying to pull one of my LJ into a website through an rss feed, but I want a little control via the categories so I only get the stuff I want. I basically want to filter out notices and blank category entries. I tried an if statement around the output, but that just failed. Any help?
<lj-cut text="Here is the code I am working with...">
<cfhttp url="http://community.livejournal.com/travel_cheap/data/rss" method="GET" resolveurl="false">
<cfset myXMLDoc = XMLParse(cfhttp.filecontent)>
<cfset myItems = XMLSearch(myXMLDoc, "/rss/channel/item")>
<cfloop from="1" to="#arrayLen(myItems)#" index="i">
<cfoutput>
Category: #myItems[i].category.xmltext#<p>
</cfoutput>
</cfloop>
When it hits a entry with no category it does this as well:
Element CATEGORY.XMLTEXT is undefined in a Java object of type class coldfusion.xml.XmlNodeMap referenced as
</lj-cut>
<lj-cut text="Here is the code I am working with...">
<cfhttp url="http://community.livejournal.com/travel_cheap/data/rss" method="GET" resolveurl="false">
<cfset myXMLDoc = XMLParse(cfhttp.filecontent)>
<cfset myItems = XMLSearch(myXMLDoc, "/rss/channel/item")>
<cfloop from="1" to="#arrayLen(myItems)#" index="i">
<cfoutput>
Category: #myItems[i].category.xmltext#<p>
</cfoutput>
</cfloop>
When it hits a entry with no category it does this as well:
Element CATEGORY.XMLTEXT is undefined in a Java object of type class coldfusion.xml.XmlNodeMap referenced as
</lj-cut>
