From: lrnz <mxl...@ya...> - 2004-03-01 05:15:25
|
hi all, i'm using testing one of the libxml++ example programs under /opt/tools/libxml++/libxml++-1.0.2/examples/dom_parser . i created note.xml file: -- <?xml version="1.0"?> <note xmlns="http://www.w3schools.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation='note.xsd'> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> -- and schema file note.xsd: -- <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.w3schools.com" xmlns="http://www.w3schools.com" elementFormDefault="qualified"> <xs:element name="note"> <xs:complexType> <xs:sequence> <xs:element name="to" type="xs:string"/> <xs:element name="from" type="xs:string"/> <xs:element name="heading" type="xs:string"/> <xs:element name="body" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> -- when i run the program "./example note.xml" i get the following error message: Exception caught: Validity error: Validation failed: no DTD found ! even if i change the note.xsd so that xsi:schemaLocation="http://www.w3schools.com note.xsd" i get the same error. any idea how to proceed ? i'm running on fedora linux. btw, the example program works if i use the example.xml or if i change the note.xsd to note.dtd. appreciate your help.. Thanks ! *lrnz* __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ |