You must write a parser using the SAX library. How to implement a record of single self-closing tags, such as

<property name="sessionFactory"/> 

Using 'getStartElement ()', I get.

 <property name="sessionFactory"></property> 

Is it, in general, possible to distinguish paired and non-direct tags by means of this library?

  • one
    Do you need it? The difference between an empty and self-closing tag is exclusively in writing. - etki
  • If this possibility exists, then it must be used. I could not find information, so I decided to ask more knowledgeable people. - Gvenihvivar
  • If you use SAX without extensions, you will not find this situation. - Temka also

0