Hi,

Are any errors reported during the parse? Do you have your error handler printing anything out?

Gareth

Matteo Vega wrote:
Hi,

I am trying to parse a schema file and create the DOM
tree from it. I am using XSDDOMParser, but when I
call:

DOMDocument *pDocument = parser.getDocument();

it returns undefined value. This is the code sniplet
showing how I create the parser:

----------------------------------------

XSDDOMParser parser(0,
XMLPlatformUtils::fgMemoryManager, 0);

parser.setValidationScheme(XercesDOMParser::Val_Never);
parser.setDoNamespaces(true);

ErrorHandler* errHandler = (ErrorHandler*) new
HandlerBase();
parser.setErrorHandler(errHandler);

char* xsdFile = "example.xsd";

parser.parse(xsdFile);

DOMDocument *pDoc = parser.getDocument();

--------------

What am I doing wrong? Any help would be highly
appreciated.


TIA,


Matt.




__________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- Gareth Reakes, Managing Director Parthenon Computing +44-1865-811184 http://www.parthcomp.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to