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,
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".
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(
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
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
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
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);
.
DOMLSSerializer* writer =
((DOMImplementationLS*)impl)->createLSSerializer();
DOMConfiguration* dc = writer->getDomConfig();
dc->setParameter(XMLUni::fgDOMErrorHandler,errorHandler);
dc->setParameter(XMLUni::fgDOMWRTDiscardDefaultContent,true);
On 16 Apr 2009, at
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