Question about Model Groups when using PSVI interfaces

2005-04-12 Thread Elisha Berns
Hi, I'm trying (still) to dynamically build a graph of XSD type declarations and their dependencies in arbitrary XSD schemas. So far everything but this works: if a named model group is defined in its own declaration and later referenced from inside a complex content type, I don't see how to get

RE: Advanced novice question about PSVI

2005-03-21 Thread david_n_bertoni
> Well, > > I've been digging around a lot to understand what Xerces does and does > not allow and there seems to be some problem with Xerces here. If I > follow your tip and use the ContentSpecNode I end up in a dead end. I > can get the ContentSpec, but it doesn't do me much good, all that it >

RE: Advanced novice question about PSVI

2005-03-20 Thread Elisha Berns
ot; Type: " << pVector->getLeafTypeAt(i) << endl; } } } So you have apparently two designs here: one internal to the library and one for clients of the library, or so it seems. Anyways, I'm back at my original question: what's the way to get the list of paren

Re: Advanced novice question about PSVI

2005-03-18 Thread Gareth Reakes
Hey, There is a general mapping between schema types and application classes. Think of it as a way to save an application as a graph provided you know what the node definitions are ahead of time. Good, that will help a lot. Well I see this in the PSVI classes and I have started development on it,

RE: Advanced novice question about PSVI

2005-03-17 Thread Elisha Berns
Thanks for the reply, Comments below... > -Original Message- > From: Gareth Reakes [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 17, 2005 12:58 AM > To: xerces-c-dev@xml.apache.org > Subject: Re: Advanced novice question about PSVI > > Hi, > > > >

Re: Advanced novice question about PSVI

2005-03-17 Thread Gareth Reakes
Hi, I have a question whether I can use PSVI for an algorithm I have in mind... My goal is to take the content model from XSD schema documents and transform it into an ordered graph/tree that can be used to serialize application data in the order corresponding to the content model. If the

Advanced novice question about PSVI

2005-03-16 Thread Elisha Berns
To All, I have a question whether I can use PSVI for an algorithm I have in mind... My goal is to take the content model from XSD schema documents and transform it into an ordered graph/tree that can be used to serialize application data in the order corresponding to the content model. If the

Re: Feature Question: "Improve annotation error-reporting capabilities"

2005-03-03 Thread David Cargill
erces-c-dev@xml.apache.org 02/28/2005 10:49 cc AM Subject Featu

Feature Question: "Improve annotation error-reporting capabilities"

2005-02-28 Thread Daniel Graupner
Hello, I am using xerces in one of my projects for the first time and have a question. There is a feature on the list called "annotation error-reporting capabilities". In my mind this means that xerces generates error-messages from the annotation element where the error occured

Re: macosx and sockets implementation question

2004-12-29 Thread Chris Cates
Hi Alberto, It is only for MacOS X; MacOS <=9 does not have sockets. -Chris On Dec 28, 2004, at 12:22 PM, Alberto Massari wrote: Hi Chris, I am not an expert on MacOS, but I was wondering if this change is only compatible with MacOS X; does MacOS 9 (and earlier) have support for BSD sockets? Alb

Re: macosx and sockets implementation question

2004-12-29 Thread Chris Cates
Works great for me. Thanks very much! -Chris On Dec 28, 2004, at 1:09 PM, James Berry wrote: Patch committed. Thanks! Please verify. -jdb On Dec 28, 2004, at 10:05 AM, Chris Cates wrote: Since I haven't heard anything from anyone on the email below, I was wondering if anyone would have an issue

Re: macosx and sockets implementation question

2004-12-28 Thread James Berry
Hey Chris, I guess I missed your first posting on this issue. No, there's no reason this should not be a part of the Mac OS port, and I'll try to get it in shortly. I've been meaning to get around to this myself. Thanks for the patch. -jdb On Dec 28, 2004, at 10:05 AM, Chris Cates wrote: Sin

Re: macosx and sockets implementation question

2004-12-28 Thread Alberto Massari
Hi Chris, I am not an expert on MacOS, but I was wondering if this change is only compatible with MacOS X; does MacOS 9 (and earlier) have support for BSD sockets? Alberto At 12.05 28/12/2004 -0600, Chris Cates wrote: Since I haven't heard anything from anyone on the email below, I was wondering

Re: macosx and sockets implementation question

2004-12-28 Thread James Berry
Patch committed. Thanks! Please verify. -jdb On Dec 28, 2004, at 10:05 AM, Chris Cates wrote: Since I haven't heard anything from anyone on the email below, I was wondering if anyone would have an issue with me submitting the following change: //xerces-c-src_2_6_0/src/xercesc/util/Platf

Re: macosx and sockets implementation question

2004-12-28 Thread Chris Cates
Excellent! Thanks very much, James. -Chris [EMAIL PROTECTED] On Dec 28, 2004, at 12:21 PM, James Berry wrote: Hey Chris, I guess I missed your first posting on this issue. No, there's no reason this should not be a part of the Mac OS port, and I'll try to get it in shortly. I've been meaning t

RE: macosx and sockets implementation question

2004-12-28 Thread Scott Cantor
> Since I haven't heard anything from anyone on the email below, I was > wondering if anyone would have an issue with me submitting the > following change: +1 from me, I lost a day to this missing code when I couldn't figure out what the heck was happening. -- Scott

Re: macosx and sockets implementation question

2004-12-28 Thread Chris Cates
Since I haven't heard anything from anyone on the email below, I was wondering if anyone would have an issue with me submitting the following change: //xerces-c-src_2_6_0/src/xercesc/util/Platforms/MacOS/ MacOSPlatformUtils.cpp 78a79,80 > #elif defined(XML_USE_NETACCESSOR_SOCKET)

RE: Windows XP Question

2004-12-17 Thread Jesse Pelton
ember 16, 2004 3:19 PM > To: [EMAIL PROTECTED] > Subject: Windows XP Question > > Hello, > > I am working on a project that is considering the use of the > Xerces XML > parser for C++. My project supports Windows NT, 2000 and XP. > I notice that > there are sourc

Windows XP Question

2004-12-17 Thread Tina Kerchner
Hello, I am working on a project that is considering the use of the Xerces XML parser for C++. My project supports Windows NT, 2000 and XP. I notice that there are source and binary files for NT and 2000 but not XP. I also stumbled across some win64 files that I could not re-find. My question

macosx and sockets implementation question

2004-12-08 Thread Chris Cates
Greetings, I'm currently using xerces-c 2.6 built on MacOS X 10.3 with sockets as net access. (Which works very nicely, btw.) I was wondering why MacOSPlatformUtils' implementation of makeNetAccessor() does not create and return a SocketNetAccessor by default if it sees that the XML_USE_NETACC

Re: numeric character references question

2004-11-06 Thread Michael Glavassevich
"Furcea Radu" <[EMAIL PROTECTED]> wrote on 11/04/2004 12:10:23 PM: > Hello, > I'm quite new at using xerces-c and I have a problem. > I want to be able to save an xml which contain numeric character references, > so for example I want to be able to get for an element the value: > > > The probl

numeric character references question

2004-11-05 Thread Furcea Radu
Hello, I'm quite new at using xerces-c and I have a problem. I want to be able to save an xml which contain numeric character references, so for example I want to be able to get for an element the value: The problem with this kind of output is that the numeric character reference is replaced by

Re: DOMError::getMessage() question

2004-10-30 Thread Vitaly Prapirny
Diego Susa wrote: Tha fact is that Line & Col Numbers always print OK. But the "Msg: " part only prints Ok when compiled with Borland Tools. When compiled with MinGW, the getMessage() functions always returns "" ... (empty string) ??? What version of xerces are you using ? How are you compile bina

DOMError::getMessage() question

2004-10-30 Thread Diego Susa
Hi: I have a strange behavior with this function. The simple, small, Error Handler I use is this: // ... bool Xml_ErrorHandler::handleError( const DOMError & domError ) { _logger << "XercesError: "; char* msgPtr = xercesc::XM

Re: Question about usage acknowledgement

2004-09-23 Thread James Berry
Bryan, See http://www.apache.org/foundation/preFAQ.html#licence. If that doesn't answer your question, send mail to [EMAIL PROTECTED] -jdb On Sep 23, 2004, at 2:10 PM, Bryan Wilcox wrote: Hello,    Our group is using the Xerces C 2.5 parser to read/write XML in several commercial sof

Question about usage acknowledgement

2004-09-23 Thread Bryan Wilcox
Hello,    Our group is using the Xerces C 2.5 parser to read/write XML in several commercial software products under development.  I know that under the license agreement, a developer is required to provide acknowledgement to Apache for the use of this product in the end user documentation.  Howeve

RE: Question concerning XMLCh*

2004-09-10 Thread Milan Tomic
> If yes: what may happen if I do not call this method? You will have memory leaks. If you do not restart your app for a long time it will use all RAM you have. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

Question concerning XMLCh*

2004-09-10 Thread Heeg, Michael
Hi everybody, simple question: do I have to call the "XMLString::release()" method when an XMLCh* pointer is not used anymore? If yes: what may happen if I do not call this method? Example code: XMLCh* xchImpl = NULL; xchImpl = XMLString::transc

Re: AW: Question concerning DOMBuilder and encoding

2004-09-01 Thread Gareth Reakes
Hi, A newbie question: what does "LS" stand for? Load Save Another newbie question: what is the functional difference between DOMBuilder and XercesDOMParser? The interfaces and some of the default behaviors are different. XercesDOMParser existed before DOM defined a parser. Gareth

RE: Question concerning DOMBuilder and encoding

2004-09-01 Thread Jesse Pelton
a document pointer; you have to call XercesDOMParser::getDocument() after parsing to obtain the document. > -Original Message- > From: Heeg, Michael [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 01, 2004 11:25 AM > To: '[EMAIL PROTECTED]' > Subjec

AW: AW: Question concerning DOMBuilder and encoding

2004-09-01 Thread Heeg, Michael
ECTED] > Cc: Heeg, Michael > Betreff: Re: AW: Question concerning DOMBuilder and encoding > > > Hi Michael, > if createDOMInputSource doesn't work, try with > > LocalFileInputSource file(XMLString::transcode(m_xmlPath.data())); > file.setEncoding(XMLString::transcod

RE: Question concerning DOMBuilder and encoding

2004-09-01 Thread Jesse Pelton
keep me from trying. > -Original Message- > From: Gareth Reakes [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 01, 2004 11:25 AM > To: [EMAIL PROTECTED] > Subject: Re: Question concerning DOMBuilder and encoding > > Hi Jesse, > > Jesse Pelton wrote:

Re: Question concerning DOMBuilder and encoding

2004-09-01 Thread Gareth Reakes
Hi Jesse, Jesse Pelton wrote: Last I heard, Gareth suggested that work might start on DOM 3 Core, at least, following the release of 2.6, but I don't recall any further discussion. I was looking for some volenteers :) No one has replied as yet. As I said in my previous mail its quite a lot of work

Re: AW: Question concerning DOMBuilder and encoding

2004-09-01 Thread Alberto Massari
mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 1. September 2004 15:20 > An: [EMAIL PROTECTED] > Betreff: RE: Question concerning DOMBuilder and encoding > > > Looking at the documentation, it appears that > DOMBuilder::parse(const DOMInputSource &source) should allow > y

AW: Question concerning DOMBuilder and encoding

2004-09-01 Thread Heeg, Michael
) > implementation. Maybe it'll get better when the final > specification is implemented. The spec is considerably > different from the draft the experimental implementation is > based on. For instance, DOMBuilder and DOMInputSource were > changed to LSParser and LSInput res

RE: Question concerning DOMBuilder and encoding

2004-09-01 Thread Jesse Pelton
Wednesday, September 01, 2004 10:12 AM > To: '[EMAIL PROTECTED]' > Cc: Heeg, Michael > Subject: AW: Question concerning DOMBuilder and encoding > > Hi Jesse, > > thanks for your advice. I tried, but I failed. Please see > below the code > fragment. > The part wh

AW: Question concerning DOMBuilder and encoding

2004-09-01 Thread Heeg, Michael
esse Pelton [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 1. September 2004 15:20 > An: [EMAIL PROTECTED] > Betreff: RE: Question concerning DOMBuilder and encoding > > > Looking at the documentation, it appears that > DOMBuilder::parse(const DOMInputSource &source) sho

RE: Question concerning DOMBuilder and encoding

2004-09-01 Thread Jesse Pelton
inal Message- > From: Heeg, Michael [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 01, 2004 9:08 AM > To: [EMAIL PROTECTED] > Cc: Heeg, Michael > Subject: Question concerning DOMBuilder and encoding > > Hi everybody, > > I have a problem with parsing a local f

Question concerning DOMBuilder and encoding

2004-09-01 Thread Heeg, Michael
e in the local files. My question: is it possible to set the encoding the DOMBuilder should use outside of the local file? Thanks for your help! Best regards, Michael Heeg Here are some fragments of my sources: //member variables DOMDocument* m_domDoc; DOMBuilder* m_domBuilder; //set extern

Re: Question about external entity references

2004-08-17 Thread Neil Graham
"Chris Surridge" cc: Sent by: newsSubject: Question about external entity references

Question about external entity references

2004-08-16 Thread Chris Surridge
I'm using the SAXParser to parse a dtd that has entity definitions which contain references to external text files -- for example: >From this, I expect a "data_element" element to have a "data_attribute" attribute with a fixed value loaded from the "data.txt" file. Instead, the "data_attribute

Re: Xerces 2.X question and Request for Xerces-C contributors!

2004-08-11 Thread Gareth Reakes
Hi, this gets discussed between the committers at the planning for every release :) It is a surprising amount of work. And by that, I don't even mean implementing the features - just changing to the interfaces and throwing not implemented exceptions for the appropriate methods. My time over th

Xerces 2.X question

2004-08-11 Thread Bryan Wilcox
Hello All,     I noticed that the Level 3 support for the DOM LS module in Xerces was based on the working draft dated 26 February 2003.  I was curious if someone knew if a future version of the Xerces parser that supported the final W3C DOM LS recommendation was in the works.  I noticed that there

RE: Question Post

2004-08-06 Thread Jesse Pelton
Jain [mailto:[EMAIL PROTECTED] Sent: Friday, August 06, 2004 5:02 AMTo: [EMAIL PROTECTED]Subject: Question Post Hi   I wish to read binary data from an XML file. Can I parse/read it using Xerces. If yes which version and how? Hope to hear soon. Thanks.   Regards,   Ashish Jain

Question Post

2004-08-06 Thread Ashish Jain
Hi   I wish to read binary data from an XML file. Can I parse/read it using Xerces. If yes which version and how? Hope to hear soon. Thanks.   Regards,   Ashish Jain

Question about Dom Builder's loadGrammar

2004-07-28 Thread Bryan Wilcox
Hello,    I am trying to use the DomBuilder function loadGrammar that takes a DomInputSource to cause my parser to validate using an "in-memory" schema that we have loaded from a VC++ 2003 MFC resource.  We have the grammar in a character buffer and pass it into a MemBuffInputSource which is then W

Question

2004-07-21 Thread Baccar MEDDEB
Hi; I have the following snippet: void myClass::foo1(DOMElement* elt) { DOMNode* importedNode = domEl->getOwnerDocument()->importNode(..); // my importedNode is OK (when look to childs node) (DOMNode*)elt = importedNode; // my elt is OK ((when look to childs node, I get them correctly) DOMNode

Re: Question

2004-07-21 Thread Alberto Massari
Hi Baccar, you need to declare your function as void myClass::foo1(DOMElement*& elt) (note the &), or the changes done to the elt local variable will not be propagated to the calling code. Alberto At 20.08 20/07/2004 +0200, Baccar MEDDEB wrote: Hi; I have the following snippet: void myClass::foo1

Question

2004-07-21 Thread Baccar MEDDEB
Hi; I have the following snippet: void myClass::foo1(DOMElement* elt) { DOMNode* importedNode = domEl->getOwnerDocument()->importNode(..); // my importedNode is OK (when look to childs node) (DOMNode*)elt = importedNode; // my elt is OK ((when look to childs node, I get them correctly) DOMNode

Re: Encoding Question

2004-07-20 Thread Alberto Massari
At 10.04 20/07/2004 -0700, Bryan Wilcox wrote: That is exactly what I mean. I have created a text node named error. It has the content I have an in my document. The file is created by serializing data out using a DOMWriter. It is read in using a validating DOMBuilder which validates against

Re: Encoding Question

2004-07-20 Thread Bryan Wilcox
That is exactly what I mean.  I have created a text node named error.  It has the content I have an in my document.  The file is created by serializing data out using a DOMWriter.  It is read in using a validating DOMBuilder which validates against our schema.  We just weren't sure that it did the

Re: Encoding Question

2004-07-20 Thread Alberto Massari
Hi Bryan, At 09.47 20/07/2004 -0700, Bryan Wilcox wrote: I have observed this behavior, but haven't been able to find anything in the documentation to support what I believe to be true. Could somebody clarify this for me. If I have a text node and inside the text node is embedded "non-safe" ch

Encoding Question

2004-07-20 Thread Bryan Wilcox
I have observed this behavior, but haven't been able to find anything in the documentation to support what I believe to be true.  Could somebody clarify this for me.  If I have a text node and inside the text node is embedded "non-safe" characters such as <, >, etc. the parser will correctly read/v

Re: A question about DOM

2004-07-14 Thread Gareth Reakes
: jh_Zzz To: [EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 11:55 AM Subject: A question about DOM Hi There,   I am using xerces to parse a XML document and return a DomDocument object, my question is:   When the xml document is about only several nodes, there is no problem, but after I add some

Re: A question about DOM

2004-07-14 Thread Gareth Reakes
Hi, how many is a few nodes? When you say the XML document is 2M, do you mean the xml file itself? If so then 15M in memory is not unexpected. Gareth On 13 Jul 2004, at 4:55, jh_Zzz wrote: Hi There,   I am using xerces to parse a XML document and return a DomDocument object, my question is

Re: A question about DOM

2004-07-13 Thread jh_Zzz
If use SAX, how could I modify and save the document? - Original Message - From: jh_Zzz To: [EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 11:55 AM Subject: A question about DOM Hi There,   I am using xerces to parse a XML document and return a

A question about DOM

2004-07-12 Thread jh_Zzz
Hi There,   I am using xerces to parse a XML document and return a DomDocument object, my question is:   When the xml document is about only several nodes, there is no problem, but after I add some data, the application will use about 15M memory. (xml document is about 2M at this moment

Exception Handling Question

2004-07-06 Thread Bryan Wilcox
Hello, I am new to this list and using the Xerces Parser. We are using version 2.5 of the parser in our C++ application as a static parsing library for importing and exporting XML documents into a set of C++ classes we use for manipulating the data in our code. I was wondering if someone cou

emitError question

2004-07-06 Thread Kuznetsov Dmitriy
Hi All! I'm trying to parse not existing file, but 'parse' method does not emit any exception... Simplified code is: XercesDOMParser_var parser = new XercesDOMParser; try { parser->parse (""); } catch (...) { printf ("error"); // never reached! } Debugger said that:

emitError question

2004-07-06 Thread Kuznetsov Dmitriy
Hi All! I'm trying to parse not existing file, but 'parse' method does not emit any exception... Simplified code is: XercesDOMParser_var parser = new XercesDOMParser; try { parser->parse (""); } catch (...) { printf ("error"); // never reached! } Debugger said that:

Xml parsing question

2004-06-25 Thread lihong pei
Hi, I have a xml file, one of elements called "include" contains the path to another xml file. I need to validate the merged xml file. What's the best way to handle this? ( I can't use xinclude mechanism. ) Any suggestions and code snippets? Thanks, Lihong --

RE: Newbie's question -- extracting information from XML file

2004-06-04 Thread Erik Rydgren
> -Original Message- > From: Song Li [mailto:[EMAIL PROTECTED] > Sent: den 3 juni 2004 17:03 > To: [EMAIL PROTECTED] > Subject: Newbie's question -- extracting information from XML file > > Hi, > > I have an XML

Re: Newbie's question -- extracting information from XML file

2004-06-03 Thread Nick Bastin
On Jun 3, 2004, at 11:02 AM, Song Li wrote: Hi, I have an XML file with the format looks like: === === I want to extract the "value" under the node "subtype" by using DOM, I've tried two methods but neither return a c

Newbie's question -- extracting information from XML file

2004-06-03 Thread Song Li
Hi, I have an XML file with the format looks like: === === I want to extract the "value" under the node "subtype" by using DOM, I've tried two methods but neither return a correct result: method 1: get a DOMnode(let

Re: key/keyref question

2004-05-04 Thread James Trickel
Thanks. I read the section and then a bit more. I understand the definition of an identity constraint and such, but unclear as where it explicitly recommends "...,within the specified scope"(2.2.4). James Gareth Reakes wrote: Hi, XML Spy is incorrect in this case. The visibility of the

Re: key/keyref question

2004-05-03 Thread Gareth Reakes
Hi, XML Spy is incorrect in this case. The visibility of the key does go "upwards", so if you put a keyref at the top level then it could see it. It is not however available inside other element declarations as you have used it. Hope this helps, Gareth For a more in depth explanation (i

RE: question

2004-05-03 Thread Markus Haverkamp
Dear Gareth, Thanks, I will have a look. Best regards, Markus -Message d'origine- De : Gareth Reakes [mailto:[EMAIL PROTECTED] Envoyé : lundi 3 mai 2004 17:43 À : [EMAIL PROTECTED] Objet : Re: question Hi, > > more efficient than atof, for example ? No, and moreover,

Re: question

2004-05-03 Thread Gareth Reakes
Hi, > > more efficient than atof, for example ? No, and moreover, XML Schema types do not generally map to in built C++ types. Take a look a Pathan 2, an XPath2 implementation build on top of Xerces. The full range of XML Schema types (including user defined) are available. You should check out C

question

2004-05-03 Thread Markus Haverkamp
Dear Ladies and Gentlemen,   I’m trying to write a C++ implementation of Xerces, which parses XML files, where the type of data (e.g. boolean, integer, double, float, etc. ) is specified in a schema. However, the parser delivers these data as XMLCh, and not as boolean, integer, doub

key/keyref question

2004-05-03 Thread James Trickel
I am trying to validate the following XML: http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="list.xsd"> 1234 2345 First Second Second Against the following Schema: http://www.w3.org/2001/XMLSchema"; el

Re: Question on SAX output

2004-04-30 Thread Kiran BV
Hi, My extended question is what is the parser limit. I have 3 MB worth of data followed by an entity & and again some data. I did get 3 MB of data in one call to characters(so I assume it should be atleast > 3 MB). What is the standard buffer size used within xerces. Can this fi

Re: Question on SAX output

2004-04-30 Thread Neil Graham
"Kiran BV" <[EMAIL PROTECTED]To: [EMAIL PROTECTED] otmail.com> cc: Subject: Question on SAX output

Question on SAX output

2004-04-30 Thread Kiran BV
Does the SAX parser always return all data for an element when the characters() call is made. It seems that it returns all data until the end of its tag or the start of another element or at some entity. What is the general behaviour here. If I have a 10MB of data for an element, does xerces al

Re: Question on grammar caching

2004-04-22 Thread Gareth Reakes
Hi, > 1. I have a set of in-memory schema grammars for one or more namespaces. I > always want to use this instead of the one specified in the xml instance > doc. > I can cache the in-memory grammars but would the SAX Parser automatically > resolve the schema in the instance doc to the in-memory o

Question on grammar caching

2004-04-21 Thread Kiran BV
1. I have a set of in-memory schema grammars for one or more namespaces. I always want to use this instead of the one specified in the xml instance doc. I can cache the in-memory grammars but would the SAX Parser automatically resolve the schema in the instance doc to the in-memory one. Since I

Question

2004-04-14 Thread Rajesh Chilambi
Hi all I am trying to parse a xml file with validation. I have schema namespaces specified in the xml file. Do i have to get the xsd files for all of these schema namespaces for validation to succeed ?? How do i handle these situation ?? Rajesh -

Re: Memory question

2004-04-13 Thread Gareth Reakes
Hi, > When I do a DOMNode* pnodetoRelease = pNode->removeChild(*it); > > Is the pnodetoRelease still released when I call the DOMDocument release > method or it is really orphaned? It is still released. Gareth -- Gareth Reakes, Managing Director Parthenon Computing +44-1865-811184

Re: Memory question

2004-04-13 Thread Sylvain Duval
Thanks, so you mean Xerces internally reallocate new buffers... Other question about removeChild ... just to be sure ... When I do a DOMNode* pnodetoRelease = pNode->removeChild(*it); Is the pnodetoRelease still released when I call the DOMDocument release method or it is really orphaned?

Re: Memory question

2004-04-13 Thread Nedelcho Stanev
yep you need to release it decho - Original Message - From: "Sylvain Duval" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 13, 2004 4:14 PM Subject: Memory question > Hi all, > > Small question about memory management : > > Wh

Re: Memory question

2004-04-13 Thread Gareth Reakes
Hi, you have to delete it. Gareth On Tue, 13 Apr 2004, Sylvain Duval wrote: > Hi all, > > Small question about memory management : > > When I do a setAttribute like this on a DOMElement : > > XMLCh* Name; > chName = XMLString::transcode("synchro&quo

Memory question

2004-04-13 Thread Sylvain Duval
Hi all, Small question about memory management : When I do a setAttribute like this on a DOMElement : XMLCh* Name; chName = XMLString::transcode("synchro"); XMLCh* chValue; chValue = XMLString::transcode("attValue"); ((DOMElement*)pNode)->setAttribute(chName, ch

Urgent - Question on ids for schema components

2004-04-01 Thread Kiran BV
Posting the question again. Can anyone help on this matter. Thanks Kiran I had a question on id handling in xerces. For eg. if I have schema A.xsd schema B.xsd //HERE ABC value is repeated as a id If we look A.xsd as standalone XML having a id attribute it is unique. However if I

Question on ids in schema

2004-03-31 Thread Kitty aa
I had a question on id handling in xerces. For eg. if I have schema A.xsd schema B.xsd //HERE ABC value is repeated as a id If we look A.xsd as standalone XML having a id attribute it is unique. However if I parse A.xsd, I get an error in B.xsd saying the id attribute is

RE: Question

2004-03-25 Thread Bovy, Stephen J
I am new to all this, and in the same learning boat as you are, Glad to be of help .. -Original Message- From: Rajesh Chilambi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 1:09 PM To: [EMAIL PROTECTED] Subject: RE: Question Thanx very much, that worked... -Original

RE: Question

2004-03-25 Thread Rajesh Chilambi
Thanx very much, that worked... -Original Message- From: Bovy, Stephen J [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:05 PM To: [EMAIL PROTECTED] Subject: RE: Question You need to do it on the parser before you do the parse: parser->setFeature ( XMLUni::fgDOMNamespa

RE: Question

2004-03-25 Thread Gareth Reakes
rom: Gareth Reakes [mailto:[EMAIL PROTECTED] On > > Behalf Of Gareth Reakes > > Sent: Thursday, March 25, 2004 12:58 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Question > > > > Hi, > > you need to tell the parser that you want to use namespaces. > &

RE: Question

2004-03-25 Thread Bovy, Stephen J
You need to do it on the parser before you do the parse: parser->setFeature ( XMLUni::fgDOMNamespaces, true ); -Original Message- From: Rajesh Chilambi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 1:02 PM To: [EMAIL PROTECTED] Subject: RE: Question Hi, Thanx for

RE: Question

2004-03-25 Thread Gareth Reakes
sage- > From: Gareth Reakes [mailto:[EMAIL PROTECTED] On > Behalf Of Gareth Reakes > Sent: Thursday, March 25, 2004 12:58 PM > To: [EMAIL PROTECTED] > Subject: Re: Question > > Hi, > you need to tell the parser that you want to use namespaces. > Take a look in t

RE: Question

2004-03-25 Thread Bovy, Stephen J
He did that with this: domParser->setDoNamespaces(true); Or is there more to it than that -Original Message- From: Gareth Reakes [mailto:[EMAIL PROTECTED] On Behalf Of Gareth Reakes Sent: Thursday, March 25, 2004 12:58 PM To: [EMAIL PROTECTED] Subject: Re: Question

RE: Question

2004-03-25 Thread Rajesh Chilambi
rsday, March 25, 2004 3:58 PM To: [EMAIL PROTECTED] Subject: Re: Question Hi, you need to tell the parser that you want to use namespaces. Take a look in the docs or samples. Gareth On Thu, 25 Mar 2004, Rajesh Chilambi wrote: > Hi, > I have the following code > &

Re: Question

2004-03-25 Thread Gareth Reakes
_t* p1 = (wchar_t*)ele->getPrefix(); > wchar_t* p2 = (wchar_t*)ele->getNodeName(); > wchar_t* p3 = (wchar_t*)ele->getNamespaceURI(); > > The DOMNode in question is like this ... > getLocalName, getprefix and getnamespaceuri all return empty strings. Only >

Question

2004-03-25 Thread Rajesh Chilambi
wchar_t* p = (wchar_t*)ele->getLocalName(); wchar_t* p1 = (wchar_t*)ele->getPrefix(); wchar_t* p2 = (wchar_t*)ele->getNodeName(); wchar_t* p3 = (wchar_t*)ele->getNamespaceURI(); The DOMNode in question is like this ... getLocalName, getprefix and getnamespaceuri

RE: Clean-up question IBM Xerces 2.2

2004-03-24 Thread Bovy, Stephen J
le's that "show" but do not explain !!! Please forgive my prejudice Keep Up the Good Work , and thanks again for the help -Original Message- From: Gareth Reakes [mailto:[EMAIL PROTECTED] On Behalf Of Gareth Reakes Sent: Wednesday, March 24, 2004 2:12 AM To: [EMAIL PRO

Re: Clean-up question IBM Xerces 2.2

2004-03-24 Thread Gareth Reakes
Hi, > How do you delete/release and or free the dom > object tree when you are done with it.. Are you talking about the parser or the doucument? You can delete the parser, but you should only release the document as it does some additional cleanup. Additionally, if you got the document from the p

Clean-up question IBM Xerces 2.2

2004-03-23 Thread Bovy, Stephen J
How do you delete/release and or free the dom object tree when you are done with it.. I tried dom->release() but I got a nasty 0C4 abend with the following trace: The system detected a protection exception (System Completion Code=0C4). >From entry point xercesc_2_2::AbstractDOMParser::~Abstrac

Re: RemoveChild() Question...

2004-03-18 Thread Gareth Reakes
Hi, On Thu, 18 Mar 2004 [EMAIL PROTECTED] wrote: > Hi all, > > I have a couple of question on RemoveChild() method in DOMNode class. > We are using Xerces 2.2.0. Any help would be appreciated. > > > 1. After I call RemoveChild(), do I still have to call release() on the

RemoveChild() Question...

2004-03-18 Thread rchauhan
Title: RemoveChild() Question... Hi all, I have a couple of question on RemoveChild() method in DOMNode class.  We are using Xerces 2.2.0.  Any help would be appreciated. 1.  After I call RemoveChild(), do I still have to call release() on the returned object to free up the memory? 2

Re: SAX2XMLreader parsing question

2004-03-16 Thread Gareth Reakes
Hi, from a quick look at the docs this could happen when the index of the attribute you are looking for is greater than the list length. > ElementCount++; > AttrCount += attr.getLength(); Why do you += here? Do you not want the count to be the count of the attributes for each el

SAX2XMLreader parsing question

2004-03-15 Thread David ---
Hi again, I'm building a wrapper around xerces and have started already to implement a domparser. The idea behind is that through a factory object the user instantiates automatically a dom or sax parser. Since Dom parser is working properly now(Well have to check now how it works with walkers...).

RE: question about QElement::getElementsByTagName()

2004-03-08 Thread Peter Billen
Alberto Massari wrote: > Hi Peter, > > At 14.24 08/03/2004 +0100, Peter Billen wrote: > >Hi all, > > > >I have a question about the getElementsByTagName()-function. > > > >Imagine following simple xml structure: > > > > > > woez

  1   2   3   4   >