I'm need to build an XML which i'd use to feed datas to a Search Engine Server for Indexing purpose.
Below is a valid XML that i have,
Expand|Select|Wrap|Line Numbers
- <?xml version="1.0" encoding="utf-8"?>
- <documents>
- <document>
- <title>Brazil</title>
- <element name="body">
- <value>Brazil (Portuguese: Brasil), officially the Federative Republic of Brazil (Portuguese: República Federativa do Brasil) is a country...value>
- </element>
- <element name="url">
- <value>http://uxm-searchsrv.corp.satyam.ad:8082/ESP/Geo_Docs/Countries_Info/Brazil.html</value>
- </element>
- <element name="urls">
- <value>http://uxm-searchsrv.corp.satyam.ad:8082/ESP/Geo_Docs/Countries_Info/Brazil.html</value>
- </element>
- <element name="lat">
- <value>15.40</value>
- </element>
- <element name="lon">
- <value>47.57</value>
- </element>
- </document>
copy all the content from http://en.wikipedia.org/wiki/Brazil and paste it in the <value> tag...
The parse was showing error after error (I mean, it'd show an error, i would make the correction, and this would repeat...)
I also took off the "encoding="utf-8" and tried... then too it was showing some error... I'm not mentioning the exact errors becasue they were many in numbers. But all were general errors like, "invalid char", "white space" etc.....
Right now, after taking off the encoding, i'm getting, "Whitespace is not allowed at this location. Error processing resource 'file:///D:/MyFolder/Fast/Geo_Docs/Countries_Info/Cou..."
Can any one help me out...
Thank you