You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Simon Fell <xm...@zaks.demon.co.uk> on 2001/02/10 21:42:40 UTC

Pull model wrapper for Xerces-c ?

Hi,

I'm looking for a pull model wrapper around the Xerces-C SAX API,
anyone know of one ?

Thanks
Simon

Re: Pull model wrapper for Xerces-c ?

Posted by Simon Fell <xm...@zaks.demon.co.uk>.
Thanks, AFAICS the PParse sample doesn't really do what i'm looking
for. I'm after something like the .NET XmlReader class, 

// read (pull) the next node in document order
while (reader.Read())
{
    // get the current node's (namespace) name
    String sNodeName = (reader.NodeType == XmlNodeType.Element ||
      reader.NodeType == XmlNodeType.EndElement) ?
      reader.NamespaceURI + "#" + reader.Name : reader.Name;
    Console.WriteLine(sNodeName);      
}

http://msdn.microsoft.com/msdnmag/issues/01/01/xml/xml.asp has a more
complete description.


Thanks
Simon



On Sat, 10 Feb 2001 13:14:51 -0800, in xml you wrote:

>You might want to give a little more info as to what exactly you mean? If I
>understand what you want, then something like the progressive parse option
>already supported by Xerces would provide what you want. See the PParse
>example.
>
>--------------------------
>Dean Roddey
>The CIDLib C++ Frameworks
>Charmed Quark Software
>droddey@charmedquark.com
>http://www.charmedquark.com
>
>"We're gonna need a bigger boat"
>
>
>----- Original Message -----
>From: "Simon Fell" <xm...@zaks.demon.co.uk>
>To: <xe...@xml.apache.org>
>Sent: Saturday, February 10, 2001 12:42 PM
>Subject: Pull model wrapper for Xerces-c ?
>
>
>> Hi,
>>
>> I'm looking for a pull model wrapper around the Xerces-C SAX API,
>> anyone know of one ?
>>
>> Thanks
>> Simon
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Pull model wrapper for Xerces-c ?

Posted by Dean Roddey <dr...@charmedquark.com>.
You might want to give a little more info as to what exactly you mean? If I
understand what you want, then something like the progressive parse option
already supported by Xerces would provide what you want. See the PParse
example.

--------------------------
Dean Roddey
The CIDLib C++ Frameworks
Charmed Quark Software
droddey@charmedquark.com
http://www.charmedquark.com

"We're gonna need a bigger boat"


----- Original Message -----
From: "Simon Fell" <xm...@zaks.demon.co.uk>
To: <xe...@xml.apache.org>
Sent: Saturday, February 10, 2001 12:42 PM
Subject: Pull model wrapper for Xerces-c ?


> Hi,
>
> I'm looking for a pull model wrapper around the Xerces-C SAX API,
> anyone know of one ?
>
> Thanks
> Simon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>