DO NOT REPLY [Bug 18432] New: - Help !!! Exception on Tandem while running SAXPrint

2003-03-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

Re: DTD Question

2003-03-27 Thread Anthony Zawacki
Thanks Colin, After just starting to understand DTDs (which is what everyone here is currently using) I'll be the first to jump into XML Schemas. :) Anthony Zawacki 410-571-7161 [EMAIL PROTECTED]

Re: DTD Question

2003-03-27 Thread Colin Paul Adams
> "Anthony" == Anthony Zawacki <[EMAIL PROTECTED]> writes: Anthony> An example document: Anthony> Anthony> I never know what will be inside of the Child element, Anthony> but I do know that a Child element will always be Anthony> contained within the Parent element.

DTD Question

2003-03-27 Thread Anthony Zawacki
Hello, I have been working on a program that has an XML based configuration file. The configuration contains the actions that the application should take. Portions of the configuration file includes arbitrary XML messages, in that I do not have a DTD available to represent what is allowed. I

DO NOT REPLY [Bug 18423] New: - pre-built Linux distributions requires libcxa.so.1

2003-03-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

Re: DOM nodeValues: char* to string

2003-03-27 Thread Andreas B. Thun
Ooops! I get a core dump when calling getNodeValue() static string getNodeValue(DOMNode *node) { char*chNodeValue; const XMLCh *nodeValue; string str; if (node) { nodeValue = node->getNodeValue(); chNodeValue = XMLString::transcode(nodeValue);

RE: Re: Getting text off all subnodes

2003-03-27 Thread Erik Rydgren
Here is another variant that doesn't copy around the data as much. const XMLCh* DOMNodeImpl::getTextContent() const { DOMNode *thisNode = castToNode(this); int nContentLength = 0; { // Get total length of content DOMNodeIteratorImpl nodeIterator(thisNode, 0x0004, NULL, false); //

Re: DOM nodeValues: char* to string

2003-03-27 Thread Andreas B. Thun
> Depending on the contents of a node, this could be a lot of string copying. Hmm, this is not high performance. So, it entirely depends on what you are attempting to do... Actually, I just want to assign the node value to a string variable: string nodeValue; // the value should be stored here

Re: DOM nodeValues: char* to string

2003-03-27 Thread Anthony Zawacki
This works, but depending on what you are attempting to do, it is not optimal... What happens here is [some steps cut out for the sake of brevity]: construct std::string nodeValue. construct std::string str. assign a char* to std::string str. construct a temporary std::string. assign std::stri

Re: DOM nodeValues: char* to string

2003-03-27 Thread Andreas B. Thun
Thanks a lot for the fast reply! I have now: static string getNodeValue(DOMNode *node) { char*chNodeValue; const XMLCh *nodeValue; string str; if (node) { nodeValue = node->getNodeValue(); chNodeValue = XMLString::transcode(nodeValue); str = chN

DO NOT REPLY [Bug 13261] - DomBuilder looking for DTD files somethims after disabling the DTD checking

2003-03-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 5468] - Memory Leak

2003-03-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug

Re: DOM nodeValues: char* to string

2003-03-27 Thread Anthony Zawacki
As has been mentioned, calls to transcode will leak memory unless it is released. We use the following method internally: void XmlString2StdString(const XMLCh* in, std::string& out) { char* data = XmlString::transcode(in); out = data; XmlString::release(&data); } Additionally, af

RE: solaris 8.0

2003-03-27 Thread Renin Jegadeesan
Hi Sarah, Could you please explain what you mean by "once you get all dependancies installed"?!? i tried compiling in solaris8 using FD7 compiler. but my program was giving me linking errors. i didn't get to debugging it, but your answer might give me some very useful leads. Thanks in advance, reni

DOM nodeValues: char* to string

2003-03-27 Thread Andreas B. Thun
Hi! I am using the following function to retrieve DOM-node values. But I want to return not (char *), but a STL string value. How can I do it? Sorry for that C++ newbie request. Used to be a C programmer :-) TIA #include static char *getNodeValue(DOMNode *node) { char*chNodeValu

Re: Re: Getting text off all subnodes

2003-03-27 Thread "Andreï V. FOMITCHEV"
a beginning: String * XML::getTextContent(DOMNode * node) { String * res = new String(""); DOMNodeList * laListe = node->getChildNodes(); DOMNode * noeud_courant; for(XMLSize_t i = 0; i < laListe->getLength(); i++) { noeud_courant = laListe->item(i); // NodeType switch(no

RE: solaris 8.0

2003-03-27 Thread Sarah Leitner
I know this is a late response, I just got the message. I use GNU C++ with Solaris 8 and it works great once you get all the dependencies installed... haven't tried Xalan though. Sarah -Original Message- From: Gareth Reakes [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 6:39 AM T

RFC: Schema annotation support

2003-03-27 Thread Sir Woody Hackswell
Hello, all! I have a project in which I need to be able to use the from a schema. After hours of studying undocumented code in the validators/ directory (hint hint... why are there no docs on the validators?) I came to the conclusion that annotations seem to be completely ignored after va

RE: Getting text off all subnodes

2003-03-27 Thread vinayak
Correct me if I am wrong. Currently, we can get the text of any node. This new feature simply boils down to walking the entire tree and appending the text of each node into a string. Or is there more that is involved ? -Vinayak > -Original Message- > From: Gareth Reakes [mailto:[EMAIL

Re: Getting text off all subnodes

2003-03-27 Thread Gareth Reakes
Hi, getTextContent does what you want but is unimplemented. If you decide to implement it then we will gladly accept your code :) Gareth On Thu, 27 Mar 2003, Magnus Strand wrote: > Hi, > > Is there a method to return all text merged from all text subnodes from > a certain nod in a D

Getting text off all subnodes

2003-03-27 Thread Magnus Strand
Hi, Is there a method to return all text merged from all text subnodes from a certain nod in a DOM tree? I mean if i have this as part of an xml: It is sunnyweather today I have a DOMNode* to the header element and would like to return all the text: "It is sunny weather today" Regards, Magnus S

RE: iostreams in xerces-c

2003-03-27 Thread Gareth Reakes
Hi, there is a bug open that is assigned to me regarding this. gcc 3.2 issues warnings about old style headers and the soon to be released version of VC++ will not compile at all. We will go over to using some macros to define which one should be used. Gareth On Wed, 26 Mar 2003, Jes