Re: how to access the raw text that generated a sax event

2002-04-24 Thread Jason E. Stewart
"ted sandler" <[EMAIL PROTECTED]> writes: > Would it be possible for me to get a copy of your SWIG files so I > access the scanner's functionality from within Perl? Hey Ted, All my stuff is now in CVS. You can also grab the new version I cut tonight. Cheers, jas.

DO NOT REPLY [Bug 8496] - IDOMEntity circular reference bug

2002-04-24 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 8496] - IDOMEntity circular reference bug

2002-04-24 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 8496] New: - IDOMEntity circular reference bug

2002-04-24 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

Bug in IDOMEntityImpl?

2002-04-24 Thread Jason E. Stewart
Hey All, Why does hasChildNodes() have a call to cloneEntityRefTree()? bool IDEntityImpl::hasChildNodes() const { cloneEntityRefTree(); return fParent.fFirstChild!=0; } All it's doing is comparing the parents first child to NULL, why should it bother cloning? I have a pr

getElementById() method

2002-04-24 Thread chandra . swaminathan
From: Chandra Swaminathan Hi, I needed to use the functionality provided by the getElementById() method. But, since I am constructing an XML document dynamically and need to search for an element using the ID attribute that I added earlier, it does not work. I searched through the archives of x

DO NOT REPLY [Bug 8495] - URLInputSource constructor initializes fURL member incorrectly

2002-04-24 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 8495] New: - URLInputSource constructor initializes fURL member incorrectly

2002-04-24 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: how to access the raw text that generated a sax event

2002-04-24 Thread ted sandler
I believe that Dean is saying that in order to isolote the sequence of bytes just parsed, you need to keep a "previous_offset" variable such that the sequence is bytes[ previous_offset .. (getSrcOffset() - 1) ]. -ted > "Dean Roddey" <[EMAIL PROTECTED]> writes: > > > Keep in mind that its getti

Re: how to access the raw text that generated a sax event

2002-04-24 Thread Dean Roddey
No, I'm just saying that its giving you the position at the byte past the content it just sent you. So, if you want to get all of the source bytes for the event it just sent you, you'd need the last ending point it sent you for the previous event. So the source bytes for the current event are the

DO NOT REPLY [Bug 8492] New: - Incorrect HP link options

2002-04-24 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

Why isn't XMLURL in the documenation

2002-04-24 Thread Jason E. Stewart
Hey All, URLInputSource has a constructor that accepts an XMLURL but that class is not listed in the public API docs. This seems like an oversight. jas. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: how to access the raw text that generated a sax event

2002-04-24 Thread Jason E. Stewart
"Dean Roddey" <[EMAIL PROTECTED]> writes: > Keep in mind that its getting you the offset just past the *end* of > the thing it just handed you. So you have to keep a previous offset > around in order to get the data from there to the new end minus one > byte, which will get you the content of the

Re: TCP socket InputSource

2002-04-24 Thread Jason E. Stewart
"Michael Wojcik" <[EMAIL PROTECTED]> writes: > > From: Hespelt, Steve (Exchange) [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, April 24, 2002 12:59 PM > > [re receiving a document from a TCP socket] > > > I used a callback (the BinInputStream object is the registered > > callback object) stra

Re: looking to build static library

2002-04-24 Thread Brad Settlemyer
On Wednesday 24 April 2002 03:29 pm, Pinard, Jeffrey (CM Toolsmith) wrote: > Is there a way to build static libraries of xerces-c c++ api library? > > I only see that it builds a shared library... on Solaris using CC. > You have to do it manually for now (someone sent in a patch a few weeks ago I

Requesting CPP sample

2002-04-24 Thread Jay . Smith
Hi: As mention on one of your webpage, I'm not able to get CPP sample for SAX or DOM parser. Can you please send me complete (.cpp/.cxx, .h, .xml and .dtd) source code file set? Thanks Jay Smith Visit our website at http://www.ubswarburg.com This message contains confidential information and

Re: how to access the raw text that generated a sax event

2002-04-24 Thread Dean Roddey
If so, then that is a bug, becuase it should be independent of the input source type. This is information that is coming from the readers, which don't know anything about what kind of input their data is coming from. -- Dean Roddey The Charmed Quark Controller Charmed Quar

Re: how to access the raw text that generated a sax event

2002-04-24 Thread Alberto Massari
At 15.36 24/04/2002 -0400, you wrote: >Right. And it's also caveat emptor that getSrcOffset isn't necessarily >supported the transcoder. ..and, if I rememeber right, MemBufInputSource and LocalFileInputSource return a different location (one returns the location of the character of the next t

looking to build static library

2002-04-24 Thread Pinard, Jeffrey (CM Toolsmith)
Title: looking to build static library Is there a way to build static libraries of xerces-c c++ api library? I only see that it builds a shared library... on Solaris using CC. Thanks. Jeffrey Pinard CM Toolsmith email: [EMAIL PROTECTED]

Re: how to access the raw text that generated a sax event

2002-04-24 Thread Dean Roddey
> BTW, what is the transcoder system that ICU stands for? > -ted Umm... ICU :-) Its based on IBM's Unicode processing package, which stands for something like International Classes for Unicode or something such thing, though they changed the acronym at some point, so perhaps I'm wrong. -

Re: how to access the raw text that generated a sax event

2002-04-24 Thread ted sandler
Right. And it's also caveat emptor that getSrcOffset isn't necessarily supported the transcoder. BTW, what is the transcoder system that ICU stands for? -ted - Original Message - From: "Dean Roddey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 24, 2002 3:01 PM Su

RE: TCP socket InputSource

2002-04-24 Thread Michael Wojcik
> From: Hespelt, Steve (Exchange) [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 24, 2002 12:59 PM [re receiving a document from a TCP socket] > I used a callback (the BinInputStream object is the registered > callback object) strategy on the parsing of the top level tag so > when the parse

Re: how to access the raw text that generated a sax event

2002-04-24 Thread Dean Roddey
Keep in mind that its getting you the offset just past the *end* of the thing it just handed you. So you have to keep a previous offset around in order to get the data from there to the new end minus one byte, which will get you the content of the thing it just handed you. ---

Re: how to access the raw text that generated a sax event

2002-04-24 Thread ted sandler
Hi Jason, Would it be possible for me to get a copy of your SWIG files so I access the scanner's functionality from within Perl? Thanks so much. -ted - Original Message - From: "Jason E. Stewart" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 24, 2002 11:06 AM Subjec

RE: TCP socket InputSource

2002-04-24 Thread Hespelt, Steve (Exchange)
Michael has detailed some excellent points. However, I ran into the case that because I'm getting xml documents from a 3rd party source, options 1 & 3 are not available. I used a callback (the BinInputStream object is the registered callback object) strategy on the parsing of the top level tag so

RE: TCP socket InputSource

2002-04-24 Thread Michael Wojcik
> From: Itay Eliaz [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 24, 2002 12:03 PM > I'm trying to implement an InputSource based on a TCP socket for the XMLparser. > I do this since my connection is not HTTP, and therefore I can't use the > URLInputSource. > To do this I derived from the I

TCP socket InputSource

2002-04-24 Thread Itay Eliaz
Hi, I'm trying to implement an InputSource based on a TCP socket for the XMLparser. I do this since my connection is not HTTP, and therefore I can't use the URLInputSource. To do this I derived from the InputSource and BinInputStream classes. My problem is the document ends but the socket is stil

RE: deleting the buffer returned from DOMString::trancode()

2002-04-24 Thread Flint, Shmulik
This is similar to Bug #4565 (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4565 ) I only wanted to offer another was to solve the problem. And something else I forgot: The method I suggested (DOMString::delete_buffer()) should be a stat

RE: deleting the buffer returned from DOMString::trancode()

2002-04-24 Thread Samar Lotia
There is an alternative to using the transcode() member function in the DOMString. There are methods in the class XMLString that allow a caller to pass in buffers to transcode from/to. This means you allocate the memory for the buffer and you are responsible for deleting it. The only tricky thing

Re: null termination of DOMStrings

2002-04-24 Thread David N Bertoni/Cambridge/IBM
When the parser expands an entity, the text node before the entity while not be null-terminated. That's one I know of, but there are probably others. Why don't you test for null-termination and only copy when you have to? Dave |-+---> | | M

deleting the buffer returned from DOMString::trancode()

2002-04-24 Thread Flint, Shmulik
Hi, We’ve found a problem in our code. Our code is compiled in Visual C++, and uses the STL that comes with Visual C++. When we tried to delete (using delete []) the char* received from DOMString::transcode(), our code crashed. Our code is need to be with minimum dependency, so it is compiled with

Re: how to access the raw text that generated a sax event

2002-04-24 Thread Jason E. Stewart
"Dean Roddey" <[EMAIL PROTECTED]> writes: > The getSrcOffset() method of XMLScanner should return you the information > you want. However, it can only do that if the source offset stuff is > supported by the transcoding system being used. For ICU and the internal > transcoders that is true. I jus

Getting schema info from DOM Nodes

2002-04-24 Thread Gareth Reakes
Hi all, we are starting to upgrade Pathan to support XPath 2. Im currently investigating how to aquire the necessary information to be able to do things such as selecting nodes by their type. I know this information is available via the schema grammer (like in SEnumVal) and I understand

RE: how to access the raw text that generated a sax event

2002-04-24 Thread Murphy, James
Right - that makes sense after another look. As you say since readBytes() is used to fill a local buffer, curPos() will be increased in chunks not incremented at each sax event. I'm liking Dean's suggestion of writing your own quick and dirty scanner by hand to rip through the large documents