in reply to Re^3: XML::Twig question
in thread XML::Twig question
mirod thanks for your patience and assistance. I will explain fully the job i am doing now.
I am having an ini file in which they give conditions like shown below.
########## condition ############## <condition> <chap/<ch/<sec/<p/<anchor==<anchors </condition> ########## andcondition ############## <andcondition> <book&&<chap/<ch/<sec/<p/<para==<paragraph </andcondition> ########## orcondition ############## <orcondition> <book||<chap/<ch/<sec/<p/<ca==<caption </orcondition> ########## noncondition ############## <noncondition> <para/<author==<auth </noncondition> ########## andnoncondition ############## <andnoncondition> <book&&<chap//<anchor/<para/<it==<italics </andnoncondition> ########## ornoncondition ############## <ornoncondition> <book||<chap//<anchor/<para/<b==<bold </ornoncondition>
Now i will explain what the ini file is to do.
I will give just a sample xml file for the above conditions. Also the tool should do from 6 to 1 ie in reverse order, <ornonconition> to <condition>.
This is my requuirement and i am doing as shown in my original node. How to do this. There will be more than one entries in each condition.
input xml
<chap> <ch> <sec> <p> <anchor><b>THE ILIAD</b></anchor> <para> <author>HOMER</author> </para> <ca>check</ca> </p> </sec> <sec> <author><it>HOMER</it></author> <p> <anchor>BOOK I</anchor> <para> Sing, O goddess, <it>the anger </it>of Achilles son of Peleu +s, that brought countless ills upon the Achaeans. </para> </p> </sec> </ch> </chap>
I apologise for such long post.
Regards,
Anniyan
(CREATED in HELL by DEVIL to s|EVILS|GOODS|g in WORLD)
|
|---|