| 1 |
XML::SMART |
| 2 |
|
| 3 |
XML::Smart - A smart, easy and powerful way to access or create XML from files, data and URLs. |
| 4 |
|
| 5 |
DESCRIPTION |
| 6 |
|
| 7 |
This module provides an easy way to access/create XML data. It's based on a HASH |
| 8 |
tree created from the XML data, and enables dynamic access to it through the |
| 9 |
standard Perl syntax for Hash and Array, without necessarily caring about which |
| 10 |
you are working with. In other words, B<each point in the tree works as a Hash and |
| 11 |
an Array at the same time>! |
| 12 |
|
| 13 |
This module additionally provides special resources such as: search for nodes by |
| 14 |
attribute, select an attribute value in each multiple node, change the returned |
| 15 |
format, and so on. |
| 16 |
|
| 17 |
The module also automatically handles binary data (encoding/decoding to/from base64), |
| 18 |
CDATA (like contents with <tags>) and Unicode. It can be used to create XML files, |
| 19 |
load XML from the Web ( just by using an URL as the file path ) and has an easy |
| 20 |
way to send XML data through sockets - just adding the length of the data in |
| 21 |
the <?xml?> header. |
| 22 |
|
| 23 |
You can use I<XML::Smart> with L<XML::Parser>, or with the 2 standart parsers of |
| 24 |
XML::Smart: |
| 25 |
|
| 26 |
XML::Smart::Parser |
| 27 |
XML::Smart::HTMLParser |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
INSTALLATION |
| 32 |
|
| 33 |
To install this module type the following: |
| 34 |
|
| 35 |
perl Makefile.PL |
| 36 |
make |
| 37 |
make test |
| 38 |
make install |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
DEPENDENCIES |
| 44 |
|
| 45 |
|
| 46 |
Object::MultiType 0.3 -> I made this module specially for XML::Smart, |
| 47 |
but can be used in others too ;-P. |
| 48 |
|
| 49 |
XML::Parser (OPTIONAL) |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
TODO |
| 54 |
|
| 55 |
* Finish XPath implementation. |
| 56 |
* DTD. |
| 57 |
* Implement a better way to declare meta tags. |
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
AUTHOR |
| 63 |
|
| 64 |
Graciliano M. P. C<< <gm at virtuasites.com.br> >> |
| 65 |
|
| 66 |
I will appreciate any type of feedback (include your opinions and/or suggestions). ;-P |
| 67 |
|
| 68 |
Enjoy and thanks for who are enjoying this tool and have sent e-mails! ;-P |
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
CURRENT MAINTAINER |
| 73 |
|
| 74 |
Harish Madabushi, C<< <harish.tmh at gmail.com> >> |
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
SUPPORT AND DOCUMENTATION |
| 79 |
|
| 80 |
After installing, you can find documentation for this module with the |
| 81 |
perldoc command. |
| 82 |
|
| 83 |
perldoc XML::Smart |
| 84 |
|
| 85 |
You can also look for information at: |
| 86 |
|
| 87 |
RT, CPAN's request tracker (report bugs here) |
| 88 |
http://rt.cpan.org/NoAuth/Bugs.html?Dist=XML-Smart |
| 89 |
|
| 90 |
AnnoCPAN, Annotated CPAN documentation |
| 91 |
http://annocpan.org/dist/XML-Smart |
| 92 |
|
| 93 |
CPAN Ratings |
| 94 |
http://cpanratings.perl.org/d/XML-Smart |
| 95 |
|
| 96 |
Search CPAN |
| 97 |
http://search.cpan.org/dist/XML-Smart/ |
| 98 |
|
| 99 |
GitHub CPAN |
| 100 |
https://github.com/harishmadabushi/XML-Smart |
| 101 |
|
| 102 |
|
| 103 |
XML::Smart::Tutorial ( Tutorial and examples for XML::Smart. ) |
| 104 |
|
| 105 |
XML::Smart::FAQ ( XML::Smart Frequently Asked Questions. ) |
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
LICENSE AND COPYRIGHT |
| 110 |
|
| 111 |
This program is free software; you can redistribute it and/or |
| 112 |
modify it under the same terms as Perl itself. |