Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Totally lost, can someone see what is wrong

Status
Not open for further replies.
Jul 28, 2005
358
FR
Hi all,

I am totally lost here as to why my xml doesn't validate.

here is the part of the xml in question
Code:
<description><![CDATA[This villa built in 1983 is located in Languedoc Roussillon, on the outskirts of a village with all amenities, 10mn from a city, 1 h from an international airport. Designed by an architect and built using high quality materials, the villa has a flat roof and spacious bright rooms catching the sun all day. Description of the building<br />  The house offers about 160m² living surface on 2 floors.<br />  Ground floor: Entrance 10m², lounge with bar and fire place 31m², dining room 15m² with enamelled cupboards, fully fitted kitchen 20m², bedroom 16m², WC, laundry 13m² (part of which could be converted into a shower room) back kitchen 7m², sheltered terrace with barbecue.<br />  1st floor : bedroom with cupboards 19,5m², bathroom with shower 10m², 2 bedrooms of 12m² with cupboards, WC, corridor. <br />  <br />  Sheltered terrace with  BBQ<br />  Summer kitchen 28m² with air conditioning, shower room and WC<br />  Carport 35m²<br />  Double garage<br />  Cellar 7m²<br />  Store room 10m²<br />  <br />  Lovely pool  11m x 4m with tiled surround<br />  <br />  Grounds<br />  The enclosed grounds of 1200m²0.3acres are beautifully planted and landscaped and automatically sprinkled by a borehole.<br />  <br />  General condition<br />  The is in very good condition, electric convector heating, aluminium double glazed joinery, automatic rolling shutters, tiled floors, carpeting in master bedroom, remote controled gate with videophone. An additional shower room would need to be installed on the ground floor.<br />  <br />  Comment<br />  A modern high quality villa in a very good location. The Sea and the city are nearby and the area is residentiel and very quiet.]]></description>

and here is the info from the xsd file

Code:
<xs:element name="description" type="xs:string"/><!--A Detailed description of the property-->

Using stylus studio to validate it I get this error: "Element 'description' is not valid for content model: " but can't work out why. I have stripped all newlines out sop the text appears on a single line in the CDATA.

Thanks,

Richard
 
Don't worry, found it now. Nothing to do with the CDATA, I had missed an entry out afterwards. Silly me!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top