0

xml well formed or not

hi guys!

her's the problem: when i put this url "http://en.wikipedia.org/w/api.php?action=opensearch&format=xml&search=java" in the urls/url tag
the browser says to me that the document is not well formed. WHY??? internet explorer says that it's expecting a ;

so where's the error?? thanks!

by
1 Reply
  • QUOTE (Samuele @ May 10 2010, 09:32 AM) <{POST_SNAPBACK}>
    hi guys!

    her's the problem: when i put this url "http://en.wikipedia.org/w/api.php?action=opensearch&format=xml&search=java" in the urls/url tag
    the browser says to me that the document is not well formed. WHY??? internet explorer says that it's expecting a ;

    so where's the error?? thanks!


    I suspect the problem is that you aren't escaping the URL correctly in your table. Unless the URL is in a CDATA section you'll need to escape the & as &amp;

    Another way of solving this is to create several input keys so that YQL will create the URL for you:
    ...
    <url>http://en.wikipedia.org/w/api.php</url>
    ...
    <inputs>
    <key id='action' type='xs:string' paramType='query' required="true" const="true" default="opensearch" />
    <key id='format' type='xs:string' paramType='query' required="true" const="true" default="xml" />
    <key id='search' type='xs:string' paramType='query' required="true" />
    </inputs>


    Jonathan
    0

Recent Posts

in YQL