[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

<doc>
   <e1   />
   <e1   ></e1>
<doc>

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 
that?

Thanks a lot, Tomas Pospisil



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