DOMPrint produces invalid xml.

2001-04-10 Thread Jiwoon Jeon
The following XML shows the problem. - http://www.w3.org/TR/REC-html40"> ]> http://www.w3.org/TR/REC-html40"> DomPrint produces: ]> http://www.w3.org/TR/REC-html40"> I found that the default #FIXED value at line 4 was missing. Wha

Re: DTD help!

2001-04-10 Thread Corey Lubin
Yes, this is covered by XML Schema, via usage of a derived 'string' data type with a 'pattern' constraint placed upon it. DTD's are weak to the point that their usage is nearly pointless in a real application; this is why I am so eager for XML Schema support! :) - kaoruAngel - Original Mes

Re: [Fwd: RFC: XML::Xalan (was: Re: perl/xalan)] (fwd)

2001-04-10 Thread Jason E. Stewart
Hey Ed, I'm really glad to see someone making Perl bindings to Xalan, Thanks! I would definately use the XML::Xalan namespace, there was already some discussion about what namespace to use for XML::Xerces (in the xerces-p-dev list if you want to look at the archives), and XML::Xalan would mirror

[Fwd: RFC: XML::Xalan (was: Re: perl/xalan)] (fwd)

2001-04-10 Thread Dirk-Willem van Gulik
Comments anyone ? -- Forwarded message -- Date: Wed, 11 Apr 2001 07:16:42 +0700 From: Edwin Pratomo <[EMAIL PROTECTED]> To: Dirk-Willem van Gulik <[EMAIL PROTECTED]> Subject: [Fwd: RFC: XML::Xalan (was: Re: perl/xalan)] Hi Dirk, I'm working on a Perl binding to Xalan C++, and

Experiments with JUnit, JSUnit and CppUnit

2001-04-10 Thread Curt Arnold
I spent a few hours over the last few days experimenting with recasting the NIST Java DOM test suite using Junit (http://www.junit.org) and then porting the Junit code the JSUnit (http://www.jsunit.net) and to CppUnit (if anyone wants to experiment with any of the other parallel frameworks at

Re: Xerces 1.4.0 on MacOS X

2001-04-10 Thread James Berry
I'll take a look at what you've got and see how it fits wrt the existing Mac OS Port. -jdb On 4/10/01 10:24 AM, "Johannes Gutleber" <[EMAIL PROTECTED]> wrote: > Dear all, > > we recently succeeded to compile Xerces 1.4 and run the > samples on Max OS X (G4 processor) using the c++ > and make

RE: DOMPrint parser exception question

2001-04-10 Thread Dean Roddey
Those catches outside of the parse() calls are just to catch something that might go catastrophically wrong before the parsing can really get started. Its very unlikely to happen, and in any particular release might not ever happen. But you should be prepared to handle them if they do. If they do,

DOMPrint parser exception question

2001-04-10 Thread Houle, Dennis W
Team Xerces, The ErrorHandler documentation states "The parser shall use this interface instead of throwing an exception" and DOMTreeErrorReporter doesn't throw any exception either. So how does control ever get passed to the parser's catch block in DOMPrint? Thanks for the additional info. De

RE: transcode()

2001-04-10 Thread Gary Marsh
Title: RE: transcode() Hi Cad;     Just a guess but I think you probably need to do something like this:     DOMString value = newNode.getNodeValue();     char *valueT = value.transcode();               cout << "VALUE = " << valueT  << "\n";     if (

RE: DTD help!

2001-04-10 Thread Dean Roddey
You'll just have to enforce that in your own code. Perhaps XML Schema would address this, though I'm not sure, and its not fully official yet so you'd be taking your chances to base any system that needs to be out in the field any time soon on it. -- Dean Roddey Software Geek Extraord

Xerces 1.4.0 on MacOS X

2001-04-10 Thread Johannes Gutleber
Dear all, we recently succeeded to compile Xerces 1.4 and run the samples on Max OS X (G4 processor) using the c++ and make commandline tools that can be found on the Developer CD that ships with the Final Mac OS X release. I just joined the list, so I'm not sure, if other people already compile

Re: OT: DTD help!

2001-04-10 Thread Joseph_Kesselman
That's a better question for the XML-DEV list than here... but your two choices are: 1) Prefix your numeric identifiers with a letter, to make them valid XML names and thus usable as IDs. 2) Don't make them IDs, give up the assistance from the parser, and have your application take responsibili

OT: DTD help!

2001-04-10 Thread Rajesh Kommineni
Hello everyone, This is a DTD question. I tried to search on the list but couldnt find any information. I have a DTD definition of an element like this: When I looked at the spec, it says the attribute value of id should always a *valid* xml name. So, I should always start with a letter. T

RE: XML for IPC

2001-04-10 Thread Ken Crismon
We use an XML data stream for our IPC as well.  We did not use the XML-RPC or the SOAP formats because we needed a much simpler format.  We use a SAX parser to rip the data stream apart on the server side and simple Java StringBuffer methods to manufacture the message.   We have not found t

Re: ignore whitespace in non-validating parser

2001-04-10 Thread Joseph_Kesselman
A nonvalidating parser _MUST_ retain all the whitespace, since the only way to recognize whitespace-in-element-content (sometimes referred to as "ignorable" whitespace, though the purists don't like that name) is to validate against the DTD/Schema.

RE: Explicitly setting a DTD...

2001-04-10 Thread Stephen Lozowski
In your handler object, implement the callback resolveEntity(). Within the routine, you can create a URLInputSource for the file that you want to use as your DTD. Steve Lozowski Senior Software Engineer Phone: (516) 918-4536 Fax: (516) 918-4650 EMail: [EMAIL PROTECTED]

DOM serialization

2001-04-10 Thread Sverdlov, Yakov
Hi, I have just started to use Xerces for C++. What is the best way to save DOM_Document in memory string and/or file. I started to look at DOMPrint example... Thanks, Yakov - To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: transcode()

2001-04-10 Thread Juergen Hermann
On Tue, 10 Apr 2001 10:20:15 +0200, CAD BILBAO wrote: >What must I do to compare a 'transcode value' (valueT) with >a string ("James T.")? The easiest way by far is to use if (value.equals("James T.")) ... i.e. not to transcode at all. Ciao, Jürgen -- Jürgen Hermann, Developer ([EMA

RE: XML for IPC

2001-04-10 Thread Iain Gillies
Yes, thats what its for. NB It's not the fatsest, most efficient solution but it is an open standard and very easy to use.   What type of application communication do you intend to implement?   -Original Message-From: Paul [mailto:[EMAIL PROTECTED]]Sent: 10 April 2001 09:54

Explicitly setting a DTD...

2001-04-10 Thread Prior, Chris
Hi, Does anyone know how I can tell the SAX2XMLReader to ignore (if present) the dtd supplied in the XML doc and use a local dtd file? Unless there is another way of doing it I don't want to setup an element handler and trap a sequence of "personal.dtd" - as per the samples with "LocalFileInputS

Re: XML for IPC

2001-04-10 Thread Jean-Daniel Fekete
Hello, It makes a lot of sense to do so.  Look at the xml-rpc home page for further information (http://www.xml-rpc.org/). Paul wrote: Hi, I must apologise first if this question is irrelevant to this mailing list. I am curious if it make sense or does anyone use XML for Inter-process communica

XML for IPC

2001-04-10 Thread Paul
Hi,   I must apologise first if this question is irrelevant to this mailing list.   I am curious if it make sense or does anyone use XML for Inter-process communication ? I am thinking of using XML to describe the messenging structure between different applications on a single machine.   Ple

RE: transcode()

2001-04-10 Thread Prior, Chris
Try using strcmp Chris -Original Message- From: CAD BILBAO [mailto:[EMAIL PROTECTED]] Sent: 10 April 2001 09:20 To: [EMAIL PROTECTED] Subject: transcode() Hi! Using Apache XML Xerces for C++, with Visual C++ 6.0 on NT. I am trying to parse a XML doc. I want to display the value of a

transcode()

2001-04-10 Thread CAD BILBAO
Hi! Using Apache XML Xerces for C++, with Visual C++ 6.0 on NT. I am trying to parse a XML doc. I want to display the value of a node and execute an action if this value is "James T.". I succeed in displaying the value ("James T."), but not in executing the action: --//-- DOMString val

SAC in Xerces-C

2001-04-10 Thread Jean-Daniel Fekete
Hi, You can download the SAC extension to Xerces-C from http://www.emn.fr/fekete/sac4xerces.tgz It requires ANTLR to be present somewhere and added to the variable ANTLRPATH in the src/sac/Makefile. I am still working on DOM/CSS but would like some feedback on suitability of this kind of code f