Yeah... I guess you're correct there...

"Swanson, Brion" wrote:

> I don't believe the SAX parse generates a characters() event for empty tags.
> It's been my experience that it simply calls startElement() immediately
> followed by endElement().
>
> Brion Swanson
>
> -----Original Message-----
> From: Willy Ching [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 21, 2001 5:17 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Xerces Parser Problem
>
> >The problem is when i try to put some text in this format <value/>, then
> the
> >parser didn't found the node in the xml document, but when the format is
> >"<value></value>" then it's all the parser found the node and can put the
> text.
>
> Are you using a xerces parser when putting the text, I think xerces DOM
> Parser
> recognized this "<value/>" as a node. While using SAX parser, it would fire
> startElement event "value", characters Event "" or null , then endElement
> "value".
>
> just my thoughts.
>
> [EMAIL PROTECTED] wrote:
>
> > Hi Sebastian,
> >
> > This is not a problem of the parser. If you want the output to be the
> > expanded form, then you might need to write your own serializer.
> >
> > Cheers,
> > Sandy Gao
> > Software Developer, IBM Canada
> > (1-416) 448-3255
> > [EMAIL PROTECTED]
> >
> >
> >                     "Sebastian
> >                     Schmidt"             To:
> <[EMAIL PROTECTED]>
> >                     <schmidt@derda       cc:
> >                     ck.com>              Subject:     Xerces Parser
> Problem
> >
> >                     06/15/2001
> >                     06:43 AM
> >                     Please respond
> >                     to
> >                     xerces-j-dev
> >
> >
> >
> > Hello,
> >
> > i've one problem with the Xerces Parser. After parsing a XML document all
> > empty elements are rewritten in a short format. For e.g. original
> > <value></value> after parsing <value/>.
> >
> > Is there any way to disabled it or any method to convert it back?
> >
> > The problem is when i try to put some text in this format <value/>, then
> > the
> > parser didn't found the node in the xml document, but when the format is
> > "<value></value>" then it's all the parser found the node and can put the
> > text.
> >
> > Thank you for your help.
> >
> > Best Regards,
> >
> > Sebastian Schmidt
> >
> > ---------------------------------------------------------------------
> > 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]
>
> ---------------------------------------------------------------------
> 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]


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

Reply via email to