Hi !
I am currently writing an XML-parser using XERCES 1.7.0 with VC++ 6.0.
We are replacing an old proprietary file-format with XML and therefore we
have to
write a new parser too. We decided to use SAX2 because it fits best within
our apps design.
My SAX2-based parser overrides the startElement() member to build its
data-structures.
I have a problem with a tree-structure which looks like this in XML:
.
.
.
<!-- Block -->
<block id="_1" name="Block1"
<signal id="_2" name="Msg1"/>
<!-- Sub-block -->
<block id="_3" name="SubBlock1">
<signal id="_4" name="SubMsg_1"/>
<!-- Sub-Sub-block -->
<block id="_5" name="SubSubBlock1">
<signal id="_6" name="SubSubMsg_1"/>
</block>
</block>
</block>
<!-- Block -->
<block id="_7" name="Block2"
<signal id="_8" name="Msg2"/>
</block>
.
.
.
I need to get the level-information from the SAX2-parser, if the block I am
processing within startElement()
is a block at the root-level or a sub-block of another block.
how can I accomplish this ?
Thanx in advance!
Regards,
Hans Pesata
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]