Schema support

2001-07-03 Thread Simon Fell
Does the current schema support expose the type information to the client code, or is it purely used for validation, e.g. given a schema that defines an element 'fred' to be of type xsd:string, and given an instance doc of http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation

RE: Problem building XML4C on Solaris and Irix

2001-07-03 Thread Carl W. Brown
Andy, Is it possible to share ICU built for XML and ICU used by other applications? Carl > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Andy Heninger > Sent: Tuesday, July 03, 2001 2:15 PM > To: ICU Mailing List > Cc: [EMAIL PROTECTED] > Subject:

RE: Problem building XML4C on Solaris and Irix

2001-07-03 Thread Yves Arrouye
> Andy, > > Is it possible to share ICU built for XML and ICU used by other > applications? I was going to ask something similar. I submitted a patch for Xerces a while ago that let one do just that. The reason was that I am packaging ICU for Debian GNU/Linux (watch for the 1.8.1 packages soon,

Re: Problem building XML4C on Solaris and Irix

2001-07-03 Thread Carl_Erhorn
Tinny, Sorry to be dense, but how does this perl script resolve the change in ICU's data filename? Does it actually just rename the file? I hope not, as the name was changed to solve a problem with collisions with other versions of the package. But I'm not a perl maven, and I couldn't figure it

treating certain tags as content only

2001-07-03 Thread Rene Chan
Hi   I have a question about how to selectively disable parsing of certain tags?  The situation is I have a html file that displays well in browser but not conform to the xHTML standard, can I still use xerces-c to do some parsing, say i have:       my page http://www.someplace.com"

Re: Problem building XML4C on Solaris and Irix

2001-07-03 Thread Jack Marr
Andy Heninger wrote: > > Are you using the "packageBinaries.pl" script from Xerces to do the build? > There's a fair amount of twiddling that happens to switch the xerces build > from stand-alone mode to the use of ICU, and this script automates it. It > is also what the xerces group uses to do

Re: [Bug 2440] New: - delete on pointer from transcode() failed

2001-07-03 Thread peiyongz
What about delete __[ ]__ str; Regards, Peiyong Zhang XML Parsers Development IBM Toronto Laboratory email: [EMAIL PROTECTED] Phone: (416)448-4088; Fax: (416)448-4414; T/L: 778-4088 [EMAIL PROTECTED] on 07/03/2001 04:29:39 PM Please respo

Re: SIGSEV in IDOM_DOMImplementation::createDocumentType()

2001-07-03 Thread Jason E. Stewart
"Tinny Ng" <[EMAIL PROTECTED]> writes: > If it works for most other IDOM methods, except > getElementsByTagName(), then there may be a bug in this function It's not just a linux issue, I replicated it under Solaris: $ uname -a SunOS usf-cf-sparc-solaris-2 5.8 Generic_108528-05 sun4u sparc SUNW,

Re: SIGSEV in IDOM_DOMImplementation::createDocumentType()

2001-07-03 Thread David_N_Bertoni
The calls look OK, but each one is a memory leak, since you are required to delete the pointer returned from XMLString::transcode(): XMLCh* str = XMLString::transcode("foo"); delete [] str; Dave

Re: SIGSEV in IDOM_DOMImplementation::createDocumentType()

2001-07-03 Thread Jason E. Stewart
"Tinny Ng" <[EMAIL PROTECTED]> writes: > If it works for most other IDOM methods, except getElementsByTagName(), > then there may be a bug in this function > > Can you post your modified sample program for further investigation? Here's the version that segfaults using getElementsByTagName(

Re: [Bug 2440] New: - delete on pointer from transcode() failed

2001-07-03 Thread Jason E. Stewart
[EMAIL PROTECTED] writes: > + Then, I'm getting pointer to a newly allocated buffer of char elements: > + char* str = value.transcode(); > + > + Then, I'm going to delete that allocated area: > + delete str; // DAMAGE before free block > + > + What do I do wrong? I was looking into your code in

Re: Problem building XML4C on Solaris and Irix

2001-07-03 Thread Andy Heninger
Are you using the "packageBinaries.pl" script from Xerces to do the build? There's a fair amount of twiddling that happens to switch the xerces build from stand-alone mode to the use of ICU, and this script automates it. It is also what the xerces group uses to do its full builds of XML4C. In X

[Bug 2440] - delete on pointer from transcode() failed

2001-07-03 Thread bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2440 *** shadow/2440 Tue Jul 3 13:29:39 2001 --- shadow/2440.tmp.11105 Tue Jul 3 14:07:03 2001 *** *** 2,9 | delete on pointer from transcode() failed | +---

Re: SIGSEV in IDOM_DOMImplementation::createDocumentType()

2001-07-03 Thread Jason E. Stewart
"Tinny Ng" <[EMAIL PROTECTED]> writes: > If it works for most other IDOM methods, except getElementsByTagName(), > then there may be a bug in this function > > Can you post your modified sample program for further investigation? Hey Tinny, Here's some more info. The following patch which

Re: Problem building XML4C on Solaris and Irix

2001-07-03 Thread Tinny Ng
Try using the supplied script packageBinaries.pl to build the library, this script will fix the missing link for you. set ICUROOT= set XERCESCROOT= perl packageBinaries.pl -s -o -t icu Tinny Jack Marr wrote: > I'm trying to build XML4C 3.5.0 from sources provided by > http://www.a

Re: Whatever happened to IDOMParser::setToCreateXMLDeclTypeNode()?

2001-07-03 Thread Jason E. Stewart
"Tinny Ng" <[EMAIL PROTECTED]> writes: > Yes this is on purpose. As you may know the DOM Level 3 exposes the > information contained in the declaration as attributes of the > Document (and Entity). XMLDecl node is non-standard compliant, and > we purposely didn't want to encourage that in the n

Re: SIGSEV in IDOM_DOMImplementation::createDocumentType()

2001-07-03 Thread Jason E. Stewart
"Tinny Ng" <[EMAIL PROTECTED]> writes: > If it works for most other IDOM methods, except > getElementsByTagName(), then there may be a bug in this function > > Can you post your modified sample program for further investigation? Hey Tinny, Thanks for the response. Here's the CVS diff output

[Bug 2440] New: - delete on pointer from transcode() failed

2001-07-03 Thread bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2440 *** shadow/2440 Tue Jul 3 13:29:39 2001 --- shadow/2440.tmp.10932 Tue Jul 3 13:29:39 2001 *** *** 0 --- 1,37 + ++ + | delete on pointer

Problem building XML4C on Solaris and Irix

2001-07-03 Thread Jack Marr
I'm trying to build XML4C 3.5.0 from sources provided by http://www.alphaworks.ibm.com/tech/xml4c, but am stymied at the point where it wants to link Xerces with ICU because it is looking for libicudata.so, which is not produced by ICU, as far as I can tell. It does produce libicudt18b.so and and

Re: A small portability issue

2001-07-03 Thread Tinny Ng
Found 'std' used in XMLDeclImpl.cpp and DOMParser.cpp which are now fixed in CVS. Tinny Dean Roddey wrote: I'm not monitoring the list anymore but here's one that I ran into at work, using the HP compiler (which is evidentally more anal about this than most others.) In the two classes in DOM th

Re: Problems compling the xerces-src 1.4 on Unix

2001-07-03 Thread Tinny Ng
Aniruddha, > ... the DOM_NodeList.hpp has the following files included within itself ... The DOM_NodeList.hpp shipped in Xerces 1.4 has the following lines: #ifndef DOM_NodeList_HEADER_GUARD_ #define DOM_NodeList_HEADER_GUARD_ #include #include class NodeListImpl;

DOM_CharacterData

2001-07-03 Thread Co-op DI
Hi , I am trying to write the following code but i am getting errors.the error is pasted below for (int i=0 ; i < var.getLength () ; i++) { DOM_Node temp = var.item(i); DOM_CharacterData text = (DOM_CharacterData)temp.getFirstChild(); } tilde/lpcoop/xmlparse

Re: Column number returned by locator

2001-07-03 Thread Joseph_Kesselman
Column number is counted in chars. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: unresolved external on os390

2001-07-03 Thread Tinny Ng
Michael, Although there are a few hundred of @STO, there should be only one @ST01985 Anyway are you using Iconv Transcoder? If so, there is a known bug which may explain your link problem (Bugzilla bug #2393 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2393). While waiting for the fi

Re: 2 questions about parsing

2001-07-03 Thread Tinny Ng
Houamn, One suggestion is to set "reuseGrammar" to true during second xml document parse. It will reuse the grammar saved in the first xml document parse, and ignore whatever grammar specified in the second xml document. Note you cannot have internal subset in this case. Another suggestion is

[Bug 2391] - Problem in using Parser in solaris

2001-07-03 Thread bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2391 *** shadow/2391 Thu Jun 28 20:24:30 2001 --- shadow/2391.tmp.9043Tue Jul 3 10:30:31 2001 *** *** 2,9 | Problem in using Parser in solaris | +---

Re: SIGSEV in IDOM_DOMImplementation::createDocumentType()

2001-07-03 Thread Tinny Ng
Jason, If it works for most other IDOM methods, except getElementsByTagName(), then there may be a bug in this function Can you post your modified sample program for further investigation? Thanks! Tinny "Jason E. Stewart" wrote: > "Jason E. Stewart" <[EMAIL PROTECTED]> writes: > > > My

Re: More undocumented exceptions

2001-07-03 Thread Tinny Ng
Jason, > Does anyone care about keeping the docs up-to-date? We care. But in reality, it always got over-looked and not treated as high priority. > If so, should I file bugs when I find documentation problems like this? Sure, and if you can provide us information what missing exactly (or even

Re: Whatever happened to IDOMParser::setToCreateXMLDeclTypeNode()?

2001-07-03 Thread Tinny Ng
Yes this is on purpose. As you may know the DOM Level 3 exposes the information contained in the declaration as attributes of the Document (and Entity). XMLDecl node is non-standard compliant, and we purposely didn't want to encourage that in the new IDOM. Tinny "Jason E. Stewart" wrote: > Th

Re: parse() memory leak under Borland

2001-07-03 Thread Tinny Ng
This may be related to Bug #812 in Bugzilla (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=812) which is now fixed in the latest nightly build http://xml.apache.org/dist/xerces-c/nightly/. Tinny Andrew Snare wrote: > [apologies if this is a duplicate, my original submission seems to have >

Re: dce support

2001-07-03 Thread Tinny Ng
Just applied. Would you please verify? Thanks! Tinny Miroslaw Dobrzanski-Neumann wrote: > Dear all, > > attached you find a patch supporting dce threading on: > - AIX 4x with IBM xlC_r4 compiler > - SunOS with SUN CC compiler and Transarc DCE implementation (transarc belongs > to IBM); it s

Re: Request for current platform support

2001-07-03 Thread Tinny Ng
Just applied. Would you please verify? Thanks! Tinny Miroslaw Dobrzanski-Neumann wrote: > On Sun, Jul 01, 2001 at 06:50:02AM -0700, James Berry wrote: > > Carl, > > > > You've got some great suggestions...how about submitting some great patches > > to support them? ;) > > A week ago I have su

Column number returned by locator

2001-07-03 Thread Peter A. Volchek
I need to know the real position where xml declaration is ended. I use my own class which should resolve this task (see the pseudo code below) class XmlInfoParser : public SAXParser, public HandlerBase { public: XmlInfoParser(); virtual void XMLDecl( const XMLCh* const versionSt

scan UTF-16 Prolog

2001-07-03 Thread Peter A. Volchek
Source: XMLScanner.cpp XML prolog : chUnicodeMarker + curReader->getColumnNumber() returned 8, so the following code failed and error was emitted. Please see your code, whether you consider the Unicode marker when determining the column number. if (checkXMLDecl(true))

RE: help on XMLPlatformUtils::initialize ()

2001-07-03 Thread Jesse Pelton
You've got a number of choices. First, don't call Terminate(). It's there to release memory that's lazily allocated; it'll be released automatically when your process exits. Second, call Initialize() when your process fires up, without a matching Terminate(). This has the same effect as the first

Locator

2001-07-03 Thread Christian LEFAY
I need to get the line and the column from the file parsed. So I have done the folowing implementation :   The "X.h" : class ReaderMgr; class X: public HandlerBase  {public: X(); virtual ~X();    void startDocument(); void endDocument();  void startElement(const XMLCh* const

help on XMLPlatformUtils::initialize ()

2001-07-03 Thread Vinodkumar S
hello, i am using a xmlparser both saxparser and domparser, both working in a Single Process, Saxparser will be invoked by some event , similarly Domparser by some other event, my problem is that i want to call XMLPlatform::initialize (), more than once in a process, something like this XMLPlatfo

Re: Problem with Xerces15 com wrapper

2001-07-03 Thread Andre M Descombes
Hi Curt, I tried loadXML("") and I get the same exception! so I guess it is a problem with Xerces-C, I tried all dll versions from 1.2 till 1.5 and it still works with 1.3 but not anymore with 1.4 or 1.5. Andre From: "Curt Arnold" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> > >I get the follo