views:

50

answers:

2

we are developing an Google search component for our website. We are getting the result from Google in the form of XML.

Where Can I find the XSD for Google search results?

A: 

Is this what you're after?

http://www.google.com/cse/docs/resultsxml.html#XML_Results_for_Regular_and_Advanced_Search_Queries

Jivings
That is correct, But there is no reference to XSD. I am planning to use XML bean to generate java objects. Is there better way to do this?
MPH
+1  A: 

Looking at the google xml reference, there is a section about the DTD and its location:

The DTD is available on the Google Search Appliance at http://<appliance_hostname>/google.dtd.

So, it appears that Google use DTDs and not XSDs.

Oded
Yes That is the DTD, but i need XSD and it XMLBeans Requir XSD and also I tried the online tool http://www.hitsw.com/xml_utilites/ to convert the DTD and got the fallowing error. An error occurred while trying to convert the XML DTD file to an XML Schema file.Error details: de.tudarmstadt.ito.schemas.dtd.DTDException: Duplicate element type declaration: IMAGE
MPH
@MPH - DTDs are more expressive than XSD, so not all DTDs can be converted. You may have to create your own XSD manually.
Oded