[xml] XMLReader and distinguish between <a /> and <a></a>

Hello LibXML hackers,

I'm using xmlReader for recursive pre order traversal throught XML tree. Everything works well, but during 
testing I faced problem with distinguish between

   <e1   />
   <e1   ></e1>

both e1 elements are on same level, so I don't know after call xmlTextReaderRead() if isn't XML well formed 
or I have new node on same level.

In short I have to know what type element is (short version <a />, or long <a> </a>), how can I accomplished 

Thanks a lot, Tomas Pospisil

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]