Re: Test

2001-04-19 Thread Sushil Chohan
OK Chohan >From: "Peter A. Volchek" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: "Xerces" <[EMAIL PROTECTED]> >Subject: Test >Date: Thu, 19 Apr 2001 14:43:22 +0300 >MIME-Version: 1.0 >Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id >MHotMailBCA81AEA4004372240D02A2

RE: Question

2001-04-19 Thread Alfredo Munoz
When using SAX, Use the Locator interface to get the "line number" when needed. Alfredo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Jueves, 19 de Abril de 2001 06:43 p.m. To: [EMAIL PROTECTED] Subject: Re: Question SAXParseException gives the offending

Re: Question

2001-04-19 Thread mlist
SAXParseException gives the offending line number, which it must have gotten from somewhere. Trace the code. Mark Collette On Fri, 20 Apr 2001, Pete Black wrote: > Valid XML could be supplied as a multi-line file, or on one single line. > The parser likely doesn't keep track of line numbers,

Re: Question

2001-04-19 Thread Pete Black
Valid XML could be supplied as a multi-line file, or on one single line. The parser likely doesn't keep track of line numbers, and you may have to perform a separate pass through the file, line by line doing a substring compare till you find the start tag. > Hello. > > We use your parser for

RE: Question

2001-04-19 Thread Dean Roddey
If you use an event API (either SAX or the internal event API), then you can get line number information. If you use DOM, then the whole file has already been parsed by the time you see it. Unless the DOM saves that information for you (and probably it doesn't), then you can't really get it. If yo

RE: Deleting char* returned from DOMString.transcode() in VC++ 6.0

2001-04-19 Thread jeetu . gulati
Title: Deleting char* returned from DOMString.transcode() in VC++ 6.0  select  "Debug Multithreaded DLL".

Re: Multithreaded runtime

2001-04-19 Thread Corey Lubin
She would be referring to the multi-threaded C run-time (CRT) libraries.   In Visual Studio 6 this is configured in... Project > Settings > C/C++ > Category : Code Generation   From there, under "Use run-time library", you can choose a multithreaded lib. appropriate for your needs ( Debug/Re

RE: Deleting char* returned from DOMString.transcode() in VC++ 6.0

2001-04-19 Thread Gary Marsh
Title: Deleting char* returned from DOMString.transcode() in VC++ 6.0  Jesse;   This brings up a good question - Xerces' debug version generates a .dll and a .lib but in the VC++    "Setting options C/C++ tab; Code Generation; Use run-time library option"  I selected "Debu

RE: Deleting char* returned from DOMString.transcode() in VC++ 6.0

2001-04-19 Thread Gary Marsh
Title: Deleting char* returned from DOMString.transcode() in VC++ 6.0 To Dave and Jesse; Just another caviot to this ongoing sogga -   the comment inside of dbgheap.c where the Assertion fails says the following:       /* * If this ASSERT fails, a

RE: Deleting char* returned from DOMString.transcode() in VC++ 6.0

2001-04-19 Thread Gary Marsh
Title: Deleting char* returned from DOMString.transcode() in VC++ 6.0     Dave; I recompiled and linked using your suggestion, i.e. delete [] Name; and I get the same error message.   Thanks anyway.   Gary -Original Message-From: Dave Connet [mailto:[EMAIL PROTE

RE: Deleting char* returned from DOMString.transcode() in VC++ 6.0

2001-04-19 Thread Dave Connet
Title: Deleting char* returned from DOMString.transcode() in VC++ 6.0 In addition to Jesse's reply to this message, you should use:     delete [] Name;   Dave Connet -Original Message-From: Gary Marsh [mailto:[EMAIL PROTECTED]]Sent: Thursday, April 19, 2001 12:29 PMTo: [EMAIL PROTECT

RE: Do we need XML always

2001-04-19 Thread Julian Klappenbach
For many applications where you're defining a structured language to define data, XML is a great choice for the following reasons: Hierarchy Most data is organized according to a hierarchy. Why not utilize a data definition language that supports this? XSLTThi

RE: Deleting char* returned from DOMString.transcode() in VC++ 6.0

2001-04-19 Thread Jesse Pelton
Title: Deleting char* returned from DOMString.transcode() in VC++ 6.0 I guess the FAQ could say a little more about this. You need to make sure that you are using the multithreaded DLL version of the C runtime library. There's considerable discussion of this in the archives at http://marc.the

RE: Deleting char* returned from DOMString.transcode() in VC++ 6.0

2001-04-19 Thread Dean Roddey
Title: Deleting char* returned from DOMString.transcode() in VC++ 6.0 You are mixing runtimes. Read the FAQ which covers this topic. -- Dean Roddey Software Geek Extraordinaire Portal, Inc [EMAIL PROTECTED] -Original Message-From: Gary Marsh [mailto:[EMAIL PROTECTED]

RE: Deleting char* returned from DOMString.transcode() in VC++ 6.0

2001-04-19 Thread Gary Marsh
Title: Deleting char* returned from DOMString.transcode() in VC++ 6.0 Jesse;   Thanks for the tip.  I am linking to the xerces_c_1D.lib and I have the xerces_c_1_4D.dll in my path.  Upon recompile/link of my program I got the following error message during the run:       Debug Assertion Fa

RE: Deleting char* returned from DOMString.transcode() in VC++ 6.0

2001-04-19 Thread Jesse Pelton
Title: Deleting char* returned from DOMString.transcode() in VC++ 6.0 See http://xml.apache.org/xerces-c/faq-parse.html#faq-23

[Bug 1402] New - XMLPlatformUtils::Initialize() is not thread safe

2001-04-19 Thread bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1402 *** shadow/1402 Thu Apr 19 11:31:07 2001 --- shadow/1402.tmp.29937 Thu Apr 19 11:31:07 2001 *** *** 0 --- 1,28 + ++ + | XMLPlatformUtils::

Deleting char* returned from DOMString.transcode() in VC++ 6.0

2001-04-19 Thread Gary Marsh
Title: Deleting char* returned from DOMString.transcode() in VC++ 6.0 Hi, I am experiencing a problem deleting character pointers that are returned from the xerces library class DOMString via the transcode() function.  The exact error message from the debugger is a little bit convoluted du

Re: Problem with retrieving the value of a Node which type is TEXT_NODE

2001-04-19 Thread Joseph_Kesselman
>getNextSibling(), In your example you want getFirstChild() - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Error vs FatalError

2001-04-19 Thread Alfredo Munoz
The xerces behaviour - at least it?s worked in this way for me - is that a broken validation constraint IS reported and resolved by the error() Handler interface method, BUT if you Do nothing in the error() Handler then the parser EXIT. If you want the parser to continue AFTER a broken validation

RE: some proposals

2001-04-19 Thread Dean Roddey
Long ago I proposed that we be able to allow the application to install a transcoder. There are some gotchas involved, but the flexibility would be very nice. Basically, we could change the platform init code to only install one if the pointer isn't already set. If the app sets the static fg

RE: Problem with retrieving the value of a Node which type is TEXT_NODE

2001-04-19 Thread Day, Evan
You should be doing a getFirstChild() for the element1 node, then a getNodeValue() on the child. The text is a child of the element1 node, not a sibling. -Original Message- From: bertrai [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 1:31 AM To: '[EMAIL PROTECTED]' Subject: Pr

Re: Problem with using Xerces-c 1.4 together with strings.

2001-04-19 Thread Radovan CHYTRACEK
[EMAIL PROTECTED] wrote: > > Dear all. > > If this is the wrong place to post this, I would appreciate if you could > point me in the right direction. > > I would like to do something like this: > > #include // <-- offending part > // Include Xerces stuff I have run to the similar problem. I

Problem with using Xerces-c 1.4 together with strings.

2001-04-19 Thread Magnus . Olofsson
Dear all. If this is the wrong place to post this, I would appreciate if you could point me in the right direction. I would like to do something like this: #include // <-- offending part // Include Xerces stuff DOMString dStr; // set value of DOMString string str = dStr.transc

Problem with retrieving the value of a Node which type is TEXT_NODE

2001-04-19 Thread bertrai
I am using Xerces-c whith Microsoft Visual C++ 6.0 and I am not able to retrieve the nodeValue for a Node, which type is TEXT_NODE, after parsing an xml file. Here is an exemple: a line of the xml file is: Element1 If the current node is the Node and then I do getNextNextSibling(), I have got

Re: Problem with retrieving the value of a Node which type is TEXT_NODE

2001-04-19 Thread Peter A. Volchek
You should call getFirstChild() rather then getNextNextSibling() - Original Message - From: bertrai To: '[EMAIL PROTECTED]' Sent: Thursday, April 19, 2001 11:30 AM Subject: Problem with retrieving the value of a Node which type is TEXT_NODE I am using Xerces

Question

2001-04-19 Thread Oleg Vasura
Hello. We use your parser for the processing of the XML files. But we have a problem. It is necessary to define the line number of start-tag in the XML file during the processing. We don't know how do it. Can you help us? Best regards. Vasura Oleg.

[Bug 1395] New - DOM_NamedNodeMap::getLength() crashes

2001-04-19 Thread bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1395 *** shadow/1395 Thu Apr 19 07:23:24 2001 --- shadow/1395.tmp.28522 Thu Apr 19 07:23:24 2001 *** *** 0 --- 1,30 + ++ + | DOM_NamedNodeMap::

Re: ValScheme question

2001-04-19 Thread Tinny Ng
You can use an EntityResolver to redirect the dtd to a dummy dtd. For an example on how to use an entity resolver, see the sample "Redirect". Tinny Alexey Miroshnichenko wrote: > Hello Tinny, > > Thanks for your answer especially for part II. But can I ask you more? > > If I have only xml file

Re: [Bug 1393] New - Converting from Unicode to iso8859

2001-04-19 Thread Aaron Kaplan
Ah this reminds me of a bug/feature which I noticed recently: when I feed the parser (DOM) an UTF-16 document which is actually lets say ASCII or ISO-8859-1 (i.e. no 16 bit) it will core dump. In other words: if the < ... ENCODING= > part _says_ its in UTF-16 but in fact it is not, then we are i

[Bug 1393] New - Converting from Unicode to iso8859

2001-04-19 Thread bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1393 *** shadow/1393 Thu Apr 19 06:50:42 2001 --- shadow/1393.tmp.28419 Thu Apr 19 06:50:42 2001 *** *** 0 --- 1,19 + ++ + | Converting from Un

Re: Error vs FatalError

2001-04-19 Thread Joseph_Kesselman
To get details of why a parse failed, you have to write and plug in an error handler object. The default handler just fails silently. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Error vs FatalError

2001-04-19 Thread Alexey Miroshnichenko
Hello All, Can anyone answer for follow questions. What is the error? And What is Eatal Error? When we about parsing. Why parser do fatal error when it meets validation error? I had never get error from parser. Only fatal one. So, what's the difference? Thanks before -- Best regar

Error vs FatalError

2001-04-19 Thread Alexey Miroshnichenko
Hello All, Can you ask me follow questions. What is the error? And What is Eatal Error? When we about parsing. Why parser do fatal error when it meets validation error? I had never get error from parser. Only fatal one. So, what's the difference? Thanks before -- Best regards, Al

Re[2]: ValScheme question

2001-04-19 Thread Alexey Miroshnichenko
Hello Tinny, Thanks for your answer especially for part II. But can I ask you more? If I have only xml files and my objective is only test them for be well-formed. Some files have doctype decl some haven't. I must do only this test. And in general case I have no dtd file. How can I be equal to a

Re: Do we need XML always

2001-04-19 Thread Joseph_Kesselman
Use XML where it's a useful notation. It may be useful because you're exchanging data with other folks -- OR because you or your users may want to leverage XML-based tools and APIs within your own organization. Note that another option is to store the data in non-XML form for most purposes, and

Re: Create Element using DOM in JAVA

2001-04-19 Thread Joseph_Kesselman
Modifying the DOM only modifies the in-memory copy of the document. To generate new file content, you have to serialize the DOM's contents out to that file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

some proposals

2001-04-19 Thread Peter A. Volchek
Hi, The time to move to new Xerces has come to our project. Since many time has passed since our last discussions, I would like to ask some questions to see if smth. was implemented/not implemented   1. Did you implemented (or are planning to implememnt) the third party transcoders support

RE: memory use / DOM

2001-04-19 Thread Uthus Ivan
I dont delete anything, since DOM_XXX are references (smartpointers), and setting the reference to NULL should delete all the data (according to previous mails from Dean Roddey, if I remember correctly). But our experience is that the memory usage is continually increasing. Ivan -Original M

Test

2001-04-19 Thread Peter A. Volchek
Test

Re: Do we need XML always

2001-04-19 Thread Vikas Jolly\(Yahoo\)
Thanks Erik vikas - Original Message - From: "Erik Rydgren" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 19, 2001 2:54 PM Subject: RE: Do we need XML always > Of course not. No one is forced to use XML. > But it is still recomended to use a standard data format as

RE: Do we need XML always

2001-04-19 Thread Erik Rydgren
Of course not. No one is forced to use XML. But it is still recomended to use a standard data format as a transport protocol. The need to interact with other applications maybe isn't neccesary today but I promise you that if you dont prepare for it then it definately is required tomorrow or more p

Multithreaded runtime

2001-04-19 Thread CAD BILBAO
Hi again! Sorry about my ignorance, but Linda Derezinski encouraged me to check that I am linking with multithreaded runtime (thank you, Linda). But I do not know to check this. I am linking with 'xerces-c_1.lib'... I have to say that I am also working with another library .lib at the same time

RE: Extracting structure's as char*

2001-04-19 Thread Ideshini Naidoo
Thank you. Your assistance has really helped me. Regards. Ideshini. -Original Message- From: Bill Schindler [mailto:[EMAIL PROTECTED]] Sent: 18 April 2001 20:49 To: [EMAIL PROTECTED] Subject: Re: Extracting structure's as char* On Wednesday, April 18, 2001, at 10:43 AM, Ideshini Naido

Do we need XML always

2001-04-19 Thread Vikas Jolly\(Yahoo\)
Hi everyone I went thru the FAQ but unable to get my reply. I am new to XML. I have an application which is a web based solution for keeping a record of production and sales for one organization only. Do I need to use XML, since I am not interacting with any other organization. I am using JSP,Se

Debug Assertion Failed - VisualStudio SP5

2001-04-19 Thread CAD BILBAO
Hi! Working with VC++6.0 (+Visual Studio SP5) on WinNT4.0 (+SP6b) When I was working WITHOUT Visual Studio Service Pack 5: + If I inserted a lot of 'strcpy(data1, data2)', I compiled without any problems, but I got the message "Debug Assertion Failed - File dbgde

Create Element using DOM in JAVA

2001-04-19 Thread Vikas Jolly\(Yahoo\)
Hi ALL I am new to XML and i am trying to create a simple element using the DOM. My problem is that no data is stored in the xml file. Following is my code. import java.io.*; import org.w3c.dom.*; import com.ibm.xml.parsers.*; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.p

[Bug 1387] New - Null pointer to fImpl in DOM_Document::getElementsByTagName

2001-04-19 Thread bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1387 *** shadow/1387 Thu Apr 19 01:13:29 2001 --- shadow/1387.tmp.27576 Thu Apr 19 01:13:29 2001 *** *** 0 --- 1,75 + ++ + | Null pointer to fI