Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

determine whether the element have text or not in it

Status
Not open for further replies.

kanghao

IS-IT--Management
Jul 4, 2004
68
KR
In SAX, Is it possible to determine whether the element have the text or not in it in startElement()?

I want the collapsed form of element like <EMPTY_ELEMENT/>
when the element have no text in it.

I have the form of <EMPTY_ELEMENT></EMPTY_ELEMENT>, because
I put
"<", element_name,">" in startElement(),
"" in characters(),
"</",element_name,">" in endElement().

I want to know in startElement() or in endElement() whether the elment have text in it.

Thanks.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top