in reply to XPath to XML
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XPath to XML
by tosaiju (Acolyte) on May 20, 2013 at 07:25 UTC | |
|
Re^2: XPath to XML
by tosaiju (Acolyte) on May 20, 2013 at 07:51 UTC | |
by Anonymous Monk on May 20, 2013 at 08:22 UTC | |
by tosaiju (Acolyte) on May 20, 2013 at 09:09 UTC |