in reply to Re^2: Perl and XML
in thread Perl and XML
In that case you really need a different data structure. Perhaps you ought give us a chunk of the bigger picture?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl and XML
by Bugz (Acolyte) on May 05, 2008 at 16:52 UTC | |
I am extracting the data from a set of perl files and storing it in the hash of hashes structure as described above in the sample data. the structure of the hash is described as
I have to now represent it to the users and allow them to search for the Functions they require and return details of the functions that match. The presentation happens over web as a webpage that shall
2. A search tool that returns only the information for a particular function that the user wants. Thus I wanted was converting it to XML so that I could then use XML and possibly AJAX for returning suggested matches when a user searches for a function. Now if you are familiar with XSL, you do know that you can create a stylesheet that allows you to described the style information for each node. But in the XML conversion that grandfather suggested, the node names are the actual function names and with more than 1000 different functions existing, it would not be practical to create a stylesheet with description for each function-node. Thus I wished To convert it in the format I suggested. Again, I am new to perl thus I am unsure how I can do this in one time when the first perl-to-xml conversion happens rather than to repeating it as this functionality I intend to take it live and thus would require to happen during every maintenance cycle. I hope that would be descriptive enough to explain my concern with perl-to-xml conversion. Bugz. | [reply] [d/l] |
by GrandFather (Saint) on May 05, 2008 at 23:01 UTC | |
So you want something like:
Prints:
Perl is environmentally friendly - it saves trees | [reply] [d/l] [select] |