Issue in using cached DTD -- XercesDOMParser

2009-10-16 Thread mini thomas
I am using "xerces 3.0.1" . My intention is to validate a document against a DTD . The DTD is in memory . I used XercesDOMParser::loadGrammar. I got the error "no declaration found for MYROOTTAG" Please find the code snippet below parseme(char *fileContents,int filesize, char* dtdfileContents,

RE: XPath (xerces 3.0.1) - accessing non existing node - performance issues

2009-08-24 Thread mini thomas
al Message----- From: mini thomas [mailto:mini_mol_tho...@yahoo.com] Sent: Monday, August 24, 2009 6:36 AM To: c-users@xerces.apache.org Subject: XPath (xerces 3.0.1) - accessing non existing node - performance issues Hi,   I am using xerces 3.0.1 and evaluating an XPath expression "a/b/c".

XPath (xerces 3.0.1) - accessing non existing node - performance issues

2009-08-24 Thread mini thomas
Hi,   I am using xerces 3.0.1 and evaluating an XPath expression "a/b/c". DOMNode* GetNode(DOMNode* startingNode , XMLCh* xpathStr)     {      DOMDocument *doc =  m_pParser->getDocument();      DOMXPathResult* result=doc->evaluate(   

Attribute order in XercesDOMParser

2009-07-31 Thread mini thomas
Hi,   I need to parse contents of a file, add an extra attribute to the root node and then update the file with the modified XML. I found that the order of attributes are getting changed, after parsing and serializing the parser contents.   Is there are option to turn off attribute sorting done

DOMLSSerializer converts white space characters in attributes to xml entities

2009-07-30 Thread mini thomas
Hi,   I am using xerces 3.0.1 and doing the following   1) Parse a string   2)Set an attribute "newattr" on the root node. The attribute value is char *temp = "\n Hello \t\t testing"   3) converting the parsed data back to xml   static const XMLCh gLS[] = { chLatin_L,  chLatin_S,  chNull }; DOMIm

Xerces 3.0.1 increased memory usage CentOS 5.1

2009-05-15 Thread mini thomas
Hi,   We have our application using xerces 3.0.1 build for two linux distrubutions,  one Redhat 9.0 and other CentOS 5.1. The application runs as a service and is supposed to run many days without restart. We are facing problem of increased usage of memory in CentOS compared to Redhat. This is ca

DOMLSSerializer -- serialize with entity node intact

2009-05-05 Thread mini thomas
 Hi, I am serializing the following xml to a character string.           hide                 part of code used.   static const XMLCh gLS[] = { chLatin_L,  chLatin_S,  chNull };   DOMImplementation *impl =  DOMImplementationRegistry::getDOMImplementation(gLS);   

Re: DOMWriter equivalent in xerces 3.0

2009-04-16 Thread mini thomas
.     DOMLSSerializer*  writer = ((DOMImplementationLS*)impl)->createLSSerializer();     DOMConfiguration* dc = writer->getDomConfig();     dc->setParameter(XMLUni::fgDOMErrorHandler,errorHandler);     dc->setParameter(XMLUni::fgDOMWRTDiscardDefaultContent,true); On 16 Apr 2009, at

DOMWriter equivalent in xerces 3.0

2009-04-16 Thread mini thomas
Hi,   I have been using DOMWriter with xerces 2.8 . But now I have the application migrated to 3.0 version. I am not able to find the equivalent of DOMWriter. Please help    My code (with 2.8)      static const XMLCh gLS[] = {XERCES_CPP_NAMESPACE_QUALIFIER chLatin_L, XERCES_CPP_NAMESPACE_QUALIFI