I want to form a path name so that I know where to save the file.
For example, this is taken from a sample XML file.
I want to take the words between each pair of single quotes, and concatenate and form a path.
So the output should be firstlevel\secondlevel\thirdlevel\filename
Can someone please help me?
<reportSearchPath>/content/package[@name='firstlevel']/folder[@name='secondlevel']/folder[@name='thirdleve']/report[@name='filename']</reportSearchPath>
For example, this is taken from a sample XML file.
I want to take the words between each pair of single quotes, and concatenate and form a path.
So the output should be firstlevel\secondlevel\thirdlevel\filename
Can someone please help me?
<reportSearchPath>/content/package[@name='firstlevel']/folder[@name='secondlevel']/folder[@name='thirdleve']/report[@name='filename']</reportSearchPath>