Hi all, How can write a regular expression to retrieve values from xml node. Actually the node structure is very big so we can't traverse easly, so i want to read as normal text file and hop i can write a regx to findout the matching elements.
<node1>
<node2>str</node2>
<node3>Text</node3>
<myvalue>Here is the values string..</myvalue>
</node1>
The above is the pattern i want to retrieve values <myvalue></myvalue>
but in my xml there are so many other node contains the <myvalue>
child. So only way to findout the appropriate node which i want is in the above pattern. the only change in value rest of the node values are same <node2>str</node2>
, <node3>Text</node3>
are always same.
So how can I write the regx for php?