See if a xml or xsd document is well formed

I have searched and Google'd, but I cannot find a way to
validate that the XML or XSD being processed is well formed. I don't want to
validate against a DTD. How can I check if the document is well formed using Xerces-C? A code example would be nice...
Thanks
[281 byte] By [jahlight] at [2007-11-20 10:07:01]
# 1 Re: See if a xml or xsd document is well formed
Have you tried running any of the Xerces samples against your input?
http://xml.apache.org/xerces-c/samples.html

You should encounter a XMLException when your input is not well-formed. Try purposely introducing errors into your source and run Xerces to see what happens.
jkmyoung at 2007-11-10 3:26:52 >