The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automated Home RSS feed



Quoting Dean Smith <ukha@eatworms.org.uk>:

> I currently get the automatedhome.co.uk rss feed (amongst others)
using a
> script within homeseer that uses the Microsoft XML parser. Its
currently
> falling over because one of the items is..
>
> <item>
>  <title>Kiss & Mplayer have tiff</title>
>  <link>http://www.automatedhome.co.uk/article.php3?story_id=1358</link>
> </item>
>
> It's giving the error "Error #: -1072896749: Whitespace is not
allowed at
> this location. Line #: 31 Line Position: 15 "
>
> Which equates to the "&" in the <title>. Looks
perfectly legal to me though.
> Unfortunately I borrowed the XML so code dont really know if there are
any
> options I can tweak.
>
> I call it with:-
>
> Set xmlDoc = CreateObject("Microsoft.XMLDOM")
> xmlDoc.async = False
> If xmlDoc.Load(strRSSUrl)) Then
>  	<Do Stuff>
> Else
> 	<Report Error>
> End If
>
> Anyone have any hints or ideas ?
>

Somehow you need to do a search and replace before giving it to the XML
parser.

You need to find "&<space>" and replace it with
"&amp;<space>" to make it a
legal document. You MUST search for the following space before doing the
replacement otherwise a legal &amp; would become &amp;amp;

Dont know how to do this in Homeseer though.


Keith

www.diyha.co.uk
www.kat5.tv

UK Home Automation Meet 2004 - BOOK NOW!
http://www.ukha2004.com

http://www.automatedhome.co.uk
Post message: ukha_d@yahoogroups.com
Subscribe:  ukha_d-subscribe@yahoogroups.com
Unsubscribe:  ukha_d-unsubscribe@yahoogroups.com
List owner:  ukha_d-owner@yahoogroups.com


Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.