Re: XML Data Problem
Dave wrote: The following in a string of XML data causes revCreateXMLTree() to return an error: Gorillaz & Killers Is there a way to handle this? revCreateXMLTree is correct to return an error; "&" is an illegal character in XML. (One of two, the other is "<".) The 'right' way to handle this is for the XML to be valid; which would be done by either wrapping the offending text in a CDATA section: or by using entities in place of the offending characters: Gorillaz & Killers However, if you don't have control over the XML, and want to parse it anyway, you could try using the dontparseBadData parameter to revCreateXMLTree, to encourage it to do its best. That will probably, but not definitely, let you get away with it - at least for that example. Failing that, if you can't get valid XML, and it's so invalid that revCreateXMLTree won't accept it even when asked to be more tolerant, and you want to parse it anyway, you might have to do some preprocessing to massage out known errors that you want to overlook. HTH, - Ben ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: More - XML Data Problem
I was going to reply to say that apparently colon is used with namespaces, and authors are not supposed to use them in tags, but even so, parsers are supposed to cope with that. As the problem may be with the ampersand, try this: Gorillaz & Killers ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
More - XML Data Problem
Opps! Meant to say; If I change the string to: Gorillaz and Killers All is Fine! Thanks a lot Dave -- Hi, The following in a string of XML data causes revCreateXMLTree() to return an error: Gorillaz & Killers Is there a way to handle this? All the best Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
XML Data Problem
Hi, The following in a string of XML data causes revCreateXMLTree() to return an error: Gorillaz & Killers Is there a way to handle this? All the best Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution