Hello friends,
I have a huge xml file and need to read data if some conditions are true, a kind of regex. I tried a lot with regex but goes fail. I have hosted the xml file over here since its huge
I need to check some conditions
Code:
<PDBx:B_iso_or_equiv>.*</PDBx:B_iso_or_equiv>
<PDBx:Cartn_x>.*</PDBx:Cartn_x>
<PDBx:Cartn_y>.*</PDBx:Cartn_y>
<PDBx:Cartn_z>.*</PDBx:Cartn_z>
<PDBx:auth_asym_id>.*</PDBx:auth_asym_id>
<PDBx:auth_atom_id>SG</PDBx:auth_atom_id>
<PDBx:auth_comp_id>CYS</PDBx:auth_comp_id>
<PDBx:auth_seq_id>.*</PDBx:auth_seq_id>
<PDBx:group_PDB>ATOM</PDBx:group_PDB>
IF "<PDBx:auth_comp_id>" value ="CYS" and "<PDBx:auth_atom_id>" value="SG" then i have to read values of <PDBx:Cartn_x>.*</PDBx:Cartn_x>
<PDBx:Cartn_y>.*</PDBx:Cartn_y>
<PDBx:Cartn_z>.*</PDBx:Cartn_z>
The .* indicates it varies from one to another
I tried with regex and xml parsing but failed.can someone help me to complete this project .
Thanks