Basics of validating xmls with a given schema in C++. 1. Create parser instance. SAX2XMLReader* parser = XMLReaderFactory::createXMLReader(); 2. Set required features to parser instance as follow. // Enable the parser’s schema support parser->setFeature(XMLUni::fgXercesSchema, true); // Schema validation requires namespaceContinue reading… xerces-c: C++ SAX2 Parser
Donkey Story 3
There was once a washer man who had a donkey and a dog. One night when the whole world was sleeping, a thief broke into the house, the washer man was fast asleep but the donkey and the dog wereContinue reading… Donkey Story 3
Donkey story 2
There was a salt merchant who used a donkey to transport salt bags. On their way they had to cross a stream of water slightly less than knee deep. Accidentally the donkey fell one day in the waters and toContinue reading… Donkey story 2
Donkey Story 1
One day a farmer’s donkey fell down into a well. The animal cried piteously for hours as the farmer tried to figure out what to do. Finally, he decided the animal was old, and the well needed to be coveredContinue reading… Donkey Story 1
Eclipse: resource is outof sync with the file system – permanent solution
Mysteriously got the following exception when trying to build an Eclipse project: “resource is out of sync with the file system” Although I can’t be sure, I think I may have deleted a file outside of Eclipse. To fix theContinue reading… Eclipse: resource is outof sync with the file system – permanent solution
xerces-c: C++ SAX2 Parser
Basics of validating xmls with a given schema. 1. Create parser instance. SAX2XMLReader* parser = XMLReaderFactory::createXMLReader(); 2. Set required features to parser instance as follow. // Enable the parser’s schema support parser->setFeature(XMLUni::fgXercesSchema, true); // Schema validation requires namespace processing toContinue reading… xerces-c: C++ SAX2 Parser
J2EE Basics: JDBC Driver Connections
JDBC Driver Connection Method list There are many version of the Friends to find JDBC driver or the driver often ask how to use,In here I simply sort out driver with more typical usage.1. Microsoft SQL Server series (6.5, 7.xContinue reading… J2EE Basics: JDBC Driver Connections
Paths of Glory by Jeffrey Archer
One of well known novels of Jeffery Archer would be ‘Paths of Glory’, a biography of a world renounced mountaineer, George Mallory. Mallory is the first person to target Everest as per the known resources. The mysterious disappearance of GeorgeContinue reading… Paths of Glory by Jeffrey Archer
Vim: visual block mode commands
Selecting Text (Visual Mode) To select text, enter visual mode with one of the commands below, and use arrow keys to highlight the text you are interested in. Then, use some command on the text. The operators that can beContinue reading… Vim: visual block mode commands
svn proxy settings
Proxy setup in svn always a headache when you work behind a firewall.Following is the common proxy error we get when we try for any svn command. svn: PROPFIND request failed on ‘/svn/glassfish-svn/trunk/v3/web/appserv-webtier’ svn: PROPFIND of ‘/svn/glassfish-svn/trunk/v3/web/appserv-webtier’: Could not resolveContinue reading… svn proxy settings