From nicole.anderson@mintersoft.com Sun Mar 3 15:23:01 2002
From: nicole.anderson@mintersoft.com (Nicole Anderson)
Date: Sun Mar 3 15:23:01 2002
Subject: [Expat-discuss] Visualmail 4.0 released.
Message-ID: <000d01c1c2d3$3dd0d9f0$6300a8c0@ORIGIN3000>
Dear Sir,
Good morning, my name is Nicole Anderson, and I work for Minter
Software. I am contacting you because in the past you requested
information about our web-based e-mail product Visualmail.
I am pleased to inform you that we have released a new version of
our webmail software Visualmail that includes several new features
such as html message composer, spell checker, calendar, to-do lists,
journal, notes, workgroup collaboration and many more.
I belive that this upgrade will help you to deliver differentiated
and profitable services to your customers.
To learn more about the new version of Visualmail or to evaluate the
product on-line, please point your browser to http://www.mintersoft.com.
I will appreciate if you can take a look at this new version and let us
know if you have any questions.
Thank you very much.
Best regards,
Nicole Anderson
Customer Care
Minter Software
From al-expat1@none.at Mon Mar 18 00:50:03 2002
From: al-expat1@none.at (Alexander Lazic)
Date: Mon Mar 18 00:50:03 2002
Subject: [Expat-discuss] Please help me about ExternalEntityRefHandler.
Message-ID: <20020318084903.GA6379@none.at>
Hi,
i need some explanation about the 'ExternalEntityRefHandler' ;-)
I need to check the definition in the DTD with the data which i get.
I'm not shure that expat is the right tool for that, can he parse DTD?
1.) what can the 'context' be?
2.) and which parser does i need the 'XML_ParserCreate' or
'XML_ExternalEntityParserCreate'?
typedef int
(*XML_ExternalEntityRefHandler)(XML_Parser p,
const XML_Char *context,
const XML_Char *base,
const XML_Char *systemId,
const XML_Char *publicId);
The doc said:
.
.
>Second, instead of having userData as its first argument, it receives
>the parser that encountered the entity reference.
Therefore i need the 'XML_ExternalEntityParserCreate' or?
>This, along with the context parameter, may be used as arguments to a
>call to XML_ExternalEntityParserCreate. Using the returned parser, the
>body of the external entity can be recursively parsed.
I don't understand this right i think :-(
Test.xml:
MYA
Mustinger
Maximilian
Oesterr
01.01.2002
Port
M
Blah
OEst
GEB
Geburt
Neujahrsbaby
Are the context ZMT or ACTION or PERSON ...?
And when should be called the ExternalParser bevor or after start?
Here the c-snipped:
FILE *infile=fopen(*++argv,"r");
outfile=fopen(*++argv,"w");
XML_Parser parser = XML_ParserCreate("UTF-8");
/* When should i use this? */
XML_Parser extparser = XML_ExternalEntityParserCreate(parser,"ZMR","UTF-8");
XML_SetElementHandler(parser, startElement, endElement);
XML_SetExternalEntityRefHandler(parser,externalEntityRefHandler);
XML_SetParamEntityParsing(parser,XML_PARAM_ENTITY_PARSING_ALWAYS);
XML_SetCharacterDataHandler(parser,characterDataHandler);
and the function 'externalEntityRefHandler':
int
externalEntityRefHandler(XML_Parser p, const XML_Char *context, const
XML_Char *base, const XML_Char *systemId, const XML_Char *publicId){
fprintf(outfile,"context :%s: base :%s: systemid :%s: pubid :%s:\n",
context,base,systemId,publicId);
return 0;
}
Please can anybody explain me Step by step how can i use this feature
from expat, a link whith a example?
Thanx
al ;-)
From jmstephens@us.ibm.com Tue Mar 19 06:09:06 2002
From: jmstephens@us.ibm.com (James Stephens)
Date: Tue Mar 19 06:09:06 2002
Subject: [Expat-discuss] Building the Project as MSVC Static Single-Threaded
Message-ID:
All,
I have a console app that must be compiled using the MSVC++'s static
single-threaded C run time libraries. I would like to use an XML config
file for the application. What can I do with expat to compile a statically
linked library? Does anybody have any advice?
Thank-you,
James M. Stephens Jr.
eServer xSeries Performance Design Guidance
IBM Corp, Bldg 060, Dept J39A
3039 Cornwallis Drive
Research Triangle Park, NC 27709
Tel: 919.543.4188 T/L: 441.4188
E-mail: jmstephens@us.ibm.com
From fdrake@acm.org Tue Mar 19 06:35:05 2002
From: fdrake@acm.org (Fred L. Drake, Jr.)
Date: Tue Mar 19 06:35:05 2002
Subject: [Expat-discuss] Building the Project as MSVC Static Single-Threaded
In-Reply-To:
References:
Message-ID: <15511.19420.184288.565346@grendel.zope.com>
James Stephens writes:
> I have a console app that must be compiled using the MSVC++'s static
> single-threaded C run time libraries. I would like to use an XML config
> file for the application. What can I do with expat to compile a statically
> linked library? Does anybody have any advice?
On Unix, I'd just tell you to link to libexpat.a, but I don't do
enough Windows development to know. I do hope someone can tell you
how to build this.
Even better, if someone can produce additional "configuration"
sections for the MSVC project file, I'd be glad to add them for the
next release.
-Fred
--
Fred L. Drake, Jr.
PythonLabs at Zope Corporation
From reach_panki@yahoo.com Tue Mar 19 07:18:07 2002
From: reach_panki@yahoo.com (Pankaja Kadakuntla)
Date: Tue Mar 19 07:18:07 2002
Subject: [Expat-discuss] SOAP envelope
Message-ID: <20020319151715.40540.qmail@web14502.mail.yahoo.com>
Hi,
I am using EXPAT's XML parser to read XML documents. I
have a requirement to extend my application to read
and write SOAP envelopes. I have couple of questions.
1. Does expat handle SOAP envelopes?
2. If not are there any plans of extending EXPAT API's
to read SOAP envelopes?
3. Are there any libraries or SOAP parsers (in tight
C) out there which can aid in reading/writing SOAP
envelopes. Any help regarding this would be highly
appreciated.
Thanks
Pankaja
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
From nnfei@hotmail.com Tue Mar 19 08:45:02 2002
From: nnfei@hotmail.com (nnfei)
Date: Tue Mar 19 08:45:02 2002
Subject: [Expat-discuss] Building the Project as MSVC Static Single-Threaded
References: <15511.19420.184288.565346@grendel.zope.com>
Message-ID:
Hi James,
I'm using expat XML parser in both Windows & Nucleus platform.
Because this parser is very small (only several c files), maybe you can
just copy its over to your project folder and treat it as a lib or what
ever.
I made it as a static lib in Nucleus. For single-threaded environment, I
didn't try.
Hope it helps,
Fei
----- Original Message -----
From: "Fred L. Drake, Jr."
To: "James Stephens"
Cc:
Sent: Tuesday, March 19, 2002 6:31 AM
Subject: Re: [Expat-discuss] Building the Project as MSVC Static
Single-Threaded
>
> James Stephens writes:
> > I have a console app that must be compiled using the MSVC++'s static
> > single-threaded C run time libraries. I would like to use an XML
config
> > file for the application. What can I do with expat to compile a
statically
> > linked library? Does anybody have any advice?
>
> On Unix, I'd just tell you to link to libexpat.a, but I don't do
> enough Windows development to know. I do hope someone can tell you
> how to build this.
>
> Even better, if someone can produce additional "configuration"
> sections for the MSVC project file, I'd be glad to add them for the
> next release.
>
>
> -Fred
>
> --
> Fred L. Drake, Jr.
> PythonLabs at Zope Corporation
>
> _______________________________________________
> Expat-discuss mailing list
> Expat-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/expat-discuss
>
From r.salz@verizon.net Tue Mar 19 09:30:04 2002
From: r.salz@verizon.net (Rich Salz)
Date: Tue Mar 19 09:30:04 2002
Subject: [Expat-discuss] SOAP envelope
References: <20020319151715.40540.qmail@web14502.mail.yahoo.com>
Message-ID: <3C977572.4090905@verizon.net>
There are DOZENS of soap implementations in many languages.
Start with http://www.soapware.org/directory/4/implementations
/r$
From fdrake@acm.org Thu Mar 21 19:12:01 2002
From: fdrake@acm.org (Fred L. Drake, Jr.)
Date: Thu Mar 21 19:12:01 2002
Subject: [Expat-discuss] SOAP envelope
In-Reply-To: <20020319151715.40540.qmail@web14502.mail.yahoo.com>
References: <20020319151715.40540.qmail@web14502.mail.yahoo.com>
Message-ID: <15514.41001.151863.694317@grendel.zope.com>
Pankaja Kadakuntla writes:
> I am using EXPAT's XML parser to read XML documents. I
> have a requirement to extend my application to read
> and write SOAP envelopes. I have couple of questions.
> 1. Does expat handle SOAP envelopes?
Expat is a general, non-validating XML parser. Given a SOAP message,
it can parse it into SAX-like events, but does not offer any specific
support for SOAP. It should not be difficult to implement an
efficient set of Expat callbacks that build a generally-useful object
that represents the SOAP envelope, but I don't know of an available
package that provides that for you.
If anyone knows of such a package, I'd be glad to add a link from
expat.sourceforge.net.
> 2. If not are there any plans of extending EXPAT API's
> to read SOAP envelopes?
No. Expat itself should not need to be changed in any way.
> 3. Are there any libraries or SOAP parsers (in tight
> C) out there which can aid in reading/writing SOAP
> envelopes. Any help regarding this would be highly
> appreciated.
I'd start looking at www.soapware.org.
-Fred
--
Fred L. Drake, Jr.
PythonLabs at Zope Corporation
From john_dumais@agilent.com Tue Mar 26 11:20:11 2002
From: john_dumais@agilent.com (John Dumais)
Date: Tue Mar 26 11:20:11 2002
Subject: [Expat-discuss] new to expat -- utf-16 encoding
Message-ID: <5.1.0.14.2.20020326110459.00a8b100@wheresmymailserver.com>
Hello,
I have just started using expat and would like to ask what is probably a
novice question. In reading through the documentation, one section says
that expat contains built-in support for the utf-16 character
encoding. But I'm having trouble getting a utf-16-encoded stream to
parse. In a program like this...
XML_Parser parser = XML_ParserCreate(/* character encoding */ "UTF-16");
XML_SetElementHandler(parser, StartHandler, EndHandler);
if( ! XML_Parse(parser, element.c_str(), element.length(), done)){
...
}
when fed a string that contains...
I get an error like this...
not well-formed (invalid token) at line 1
If I change this string to contain ,
things work well. However, the xml content is delivered over a socket from
a server which is not under my control.
I'm using the visual c project file I downloaded from expat 1.95.2
archive. My guess is that I'm not doing something I ought to, but I don't
know where to look.
Thanks is advance for any advice,
John Dumais
john_dumais@agilent.com
From patrick@meer.net Tue Mar 26 15:30:06 2002
From: patrick@meer.net (Patrick McCormick)
Date: Tue Mar 26 15:30:06 2002
Subject: [Expat-discuss] new to expat -- utf-16 encoding
References: <5.1.0.14.2.20020326110459.00a8b100@wheresmymailserver.com>
Message-ID: <005a01c1d51d$f57c5aa0$9c9c9dd1@patrick1>
> when fed a string that contains...
>
>
>
> I get an error like this...
>
> not well-formed (invalid token) at line 1
>
> If I change this string to contain ,
> things work well. However, the xml content is delivered over a socket
from
> a server which is not under my control.
If the string is exactly as you have it above in the file, that's not
utf-16. A UTF-16 document starts with a BOM header (0xFE 0xFF for
big-endian) and each character is two bytes wide.
Also, make sure that if you specify utf-8 (either explicitly or through
omission of the XML header) that your generated documents are actually
output in utf-8, and not iso-8859-1, which is more common in the US.
My favorite Unicode encoding page is:
http://czyborra.com/utf/