Click here to Skip to main content
15,915,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can't use RTTI Pin
Christian Graus10-Dec-01 10:00
protectorChristian Graus10-Dec-01 10:00 
GeneralMySQL help!!! Pin
Bill Gates Antimatter Particle10-Dec-01 6:35
Bill Gates Antimatter Particle10-Dec-01 6:35 
GeneralRe: MySQL help!!! Pin
Jon Hulatt10-Dec-01 6:42
Jon Hulatt10-Dec-01 6:42 
GeneralRe: MySQL help!!! Pin
Bill Gates Antimatter Particle10-Dec-01 6:55
Bill Gates Antimatter Particle10-Dec-01 6:55 
GeneralRe: MySQL help!!! Pin
markkuk10-Dec-01 19:55
markkuk10-Dec-01 19:55 
GeneralRe: MySQL help!!! Pin
Bill Gates Antimatter Particle12-Dec-01 7:25
Bill Gates Antimatter Particle12-Dec-01 7:25 
GeneralRe: MySQL help!!! Pin
Nish Nishant10-Dec-01 20:16
sitebuilderNish Nishant10-Dec-01 20:16 
GeneralXML Schema (xmlspy<=>msxml) Pin
10-Dec-01 4:53
suss10-Dec-01 4:53 
There's following problem :

When I try to add schema to XMLSchemaCache
the program fails.

MSXML2::IXMLDOMSchemaCollectionPtr pSchemaColl(__uuidof(MSXML2::XMLSchemaCache));
//schema ptr
if(pSchemaColl!=0)
{
hr=pSchemaColl->add(_bstr_t(L"x-schema:books"),
_variant_t(L"c:\\temp\\bookschema.xml"));
//here the program fails.

...
}

I tried to load some other XML schema (the one below) and it succeeds.
//=============================================
<Schema xmlns="urn:schemas-microsoft-com:xml-data">
<ElementType name="TITLE" />
<ElementType name="AUTHOR" />
<ElementType name="PUBLISHER" />
<ElementType name="DATE" />
<ElementType name="BOOK" model="closed">
<element type="TITLE" />
<element type="AUTHOR" />
<element type="PUBLISHER" />
</ElementType>
<ElementType name="COLLECTION" model="closed">
<element type="BOOK" />
</ElementType>
</Schema>
//=============================================

[on the other hand XML Spy says that this document is not valid..
but, it doesn't matter - I don't need it]

The problem is that I cannot load (add_method) schema generated/edited
with XMLSpy using MSXML Parser.

For example: XMLSPY claims that the below schema is valid
(both syntax and sematics) , but the VC++ code fails when loading
it (add method).

//=============================================
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xsd:element name="all_devices">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="device" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="device">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="part_name"/>
</xsd:sequence>
<xsd:attribute name="code" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="part_name" type="xsd:string"/>
</xsd:schema>
//=============================================
Is there any namespace conflict or something ?
What do I do wrong. Thanx for any suggestions.

Michal Januszczyk



Confused | :confused:
GeneralTab order Pin
andysolman10-Dec-01 4:48
andysolman10-Dec-01 4:48 
GeneralRe: Tab order Pin
Ravi Bhavnani10-Dec-01 4:52
professionalRavi Bhavnani10-Dec-01 4:52 
GeneralRe: Tab order Pin
andysolman10-Dec-01 23:54
andysolman10-Dec-01 23:54 
GeneralRe: Tab order Pin
Ravi Bhavnani11-Dec-01 1:53
professionalRavi Bhavnani11-Dec-01 1:53 
GeneralCreateProcess Pin
HF10-Dec-01 4:30
HF10-Dec-01 4:30 
GeneralRe: CreateProcess Pin
Jon Hulatt10-Dec-01 5:18
Jon Hulatt10-Dec-01 5:18 
GeneralRe: CreateProcess Pin
HF12-Dec-01 0:06
HF12-Dec-01 0:06 
GeneralRe: CreateProcess Pin
HF12-Dec-01 3:26
HF12-Dec-01 3:26 
GeneralRe: CreateProcess Pin
Lim Bio Liong12-Dec-01 18:36
Lim Bio Liong12-Dec-01 18:36 
GeneralRe: CreateProcess Pin
HF13-Dec-01 3:47
HF13-Dec-01 3:47 
GeneralRe: CreateProcess Pin
Lim Bio Liong13-Dec-01 19:40
Lim Bio Liong13-Dec-01 19:40 
GeneralNon Client Painting Pin
Jon Hulatt10-Dec-01 4:29
Jon Hulatt10-Dec-01 4:29 
GeneralRe: Non Client Painting Pin
Ravi Bhavnani11-Dec-01 5:28
professionalRavi Bhavnani11-Dec-01 5:28 
GeneralCropping A DIB Pin
AJ12310-Dec-01 3:24
AJ12310-Dec-01 3:24 
GeneralRe: Cropping A DIB Pin
Chris Losinger10-Dec-01 4:35
professionalChris Losinger10-Dec-01 4:35 
GeneralMySQL HELP! Pin
Bill Gates Antimatter Particle10-Dec-01 1:43
Bill Gates Antimatter Particle10-Dec-01 1:43 
GeneralRe: MySQL HELP! Pin
Jon Hulatt10-Dec-01 4:30
Jon Hulatt10-Dec-01 4:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.