Or you get a processing instruction, or a comment, etc...

Dave



                                                                                       
                           
                      "Prior, Chris"                                                   
                           
                      <chris.prior@caz         To:      
"'[EMAIL PROTECTED]'"                           
                      enove.com>               <[EMAIL PROTECTED]>           
                           
                                               cc:      (bcc: David N 
Bertoni/CAM/Lotus)                          
                      08/14/2001 11:57         Subject: RE: Problem understanding 
characters() callback in SAX2   
                      AM                       parser                                  
                           
                      Please respond                                                   
                           
                      to xerces-c-dev                                                  
                           
                                                                                       
                           
                                                                                       
                           



I forgot that you should concat until either endElement or startElement.

Thanks what I do anyways.

Good luck,

Chris

-----Original Message-----
From: Beno�t Desmeules [mailto:[EMAIL PROTECTED]]
Sent: 14 August 2001 16:53
To: [EMAIL PROTECTED]
Subject: Problem understanding characters() callback in SAX2 parser


I don't fully know the internals of Xerces so maybe my problem is caused
bya
  misunderstanding. Although, I'd need some advice about something.

I'm using SAX2 to parse an XML file and retrieve its content. It's been
running fine for a while until someone used &lt; and &gt; codes in the XMLf
 ile. When there are such codes in an XML tag, the
DefaultHandler::characters() callback gets called a few times (each time
ite
 ncounters a &lt; or &gt; code).

For example, if I had <foo>bar is &lt; than bla</foo> in my XML file, my
characters gets called twice :
first time with "bar is " and the second time with "< than bla".

Is there a way to only get one call to characters or do I have to
concatenate the contents?

Thanks in advance for the response.

         Ben




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


___________________________________________________
Email Disclaimer

This communication is for the attention of the
named recipient only and should not be passed
on to any other person. Information relating to
any company or security, is for information
purposes only and should not be interpreted as
a solicitation or offer to buy or sell any security.
The information on which this communication is based
has been obtained from sources we believe to be reliable,
but we do not guarantee its accuracy or completeness.
All expressions of opinion are subject to change
without notice.  All e-mail messages, and associated attachments,
are subject to interception and monitoring for lawful business purposes.
___________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to