Hi,
for example, in startElement, the name of the element is passed
in. You would put code in there to get the name. If you have not used SAX
before, take a look at a tutorial and all will become apparent.
Gareth
On Mon, 24 Nov 2003, Purdy, Edgar M wrote:
> Gareth,
>
> I'm jumping into this discussion with a critical question of my own.
> MemParseHandlers.cpp provides functionality to extract Number of
> elements, Number of attributes, number of white spaces and number of
> characters. Where's the functionality to extract the element name and
> its associated value?
>
> Ed Purdy
>
> -----Original Message-----
> From: Gareth Reakes [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 24, 2003 9:44 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Xerces help
>
>
> Hi,
> If you want a tree that you can traverse afterwards you should
> use
> a DOMParser. The example uses SAX. In the current example you should
> look
> at the methods in MemParseHandlers.cpp and add your code in there. You
> should probably take a look at a tutorial on SAX as well.
>
>
> Gareth
>
>
>
> On Mon, 24 Nov 2003, Edgar M. Purdy wrote:
>
> > I downloaded the release of Xerces prior to the latest one. I've been
> > running the MemParse sample. I need to expose more functionality but
> > cannot find the classes where this additional functional resides. The
> > sample gives the number of elements, number of attributes, number of
> > white spaces and number of characters. This proves the parser goes
> > through the string. I need to access the element names and their
> > associated values. Can anyone help by telling me where this
> > functionality is hiding.
> > Thanks
> > --
> > Ed Purdy
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
--
Gareth Reakes, Head of Product Development +44-1865-203192
DecisionSoft Limited http://www.decisionsoft.com
XML Development and Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]