Could you please give us an example how this should ideally work?
Like showing desired input & output?
IIRC does XPath allows various wildcards on various axis to seek flexibly within the doc tree.
Thats pretty complex or just impossible to use such incomplete information as a document definition.
But if you don't allow wildcards your pretty close at defining how to put data into nested structures (AoH...). (something like Data::Diver comes to mind or just plain autovivification)
So using a module which uses something like XPath to set Perl datastructures and exporting them to XML (e.g. see cpan for dump xml) could be a way to address this task.
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re: XPath to XML
by LanX
in thread XPath to XML
by tosaiju
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |