XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 25th, 2004, 08:20 AM
cinek cinek is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 5 cinek User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Problem with Schema validation in XercesXMLParser

Hi All Great Hackers

I have strange problem. I need to validate an xml file using Schema.
(Xerces (C++) XML parser v. 2.3 on Debian GNU/Linux) I,ve written something like this:
XercesDOMParser *parser=new XercesDOMParser();

MyDOMErrorHandler* errHandler = new MyDOMErrorHandler(); //MyDOMErrorHandler is defined elsewhere of course
parser->setErrorHandler((ErrorHandler *)errHandler);
DOMDocument *doc;

try {
parser->setValidationScheme(XercesDOMParser::Val_Always);
parser->loadGrammar(settings.getOption("grammar_file.xsd"),Grammar::SchemaGrammarType,true);
parser->useCachedGrammarInParse(true);
parser->parse("my_file.xml");

and this program breaks at this point and I get a message:

Illegal instruction

I tried to debug that with gdb but without any result.
What's the problem?

thanx in advance

Cinek

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Problem with Schema validation in XercesXMLParser


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway