05-10-2005
Honestly speaking, to my dismay I have found some XML modules for Perl are not that mature, still (the ones I mentioned are okay). Some only implement a part of the W3C standards (though it may be actually quite usable by most people). For many modules, the documentation are not well-written and some may even mislead you into antiquated material. So I tend to go Google for bits and pieces. But I think if you have an idea of the specs, you will find that the API for these XML technologies for most programming languages are highly familiar, so resources written for other languages may also be useful. Just try the examples you can find, bits and pieces, from the Web and you will soon find it easy to follow.
I think you will find this sample chapter excerpt useful:
http://www.webreference.com/programm...perlxml/chap3/
While I did my PHP project at work I read directly the W3C spec for XPath. But that is not any pleasurable reading after all. I also read the relevant chapters of the J2EE Tutorial for info (it's for Java, of course). For a simple introduction, you may go to w3schools.com.
For modules installation, modules on CPAN can be downloaded and installed with a simple (single!) command on the command line! A past poster here has written a short tutorial for that:
https://www.unix.com/tips-and-tutorials/14246-perl-cpan-intro-newbies.html
Refer him/her here to take a look.
10 More Discussions You Might Find Interesting
1. SCO
this may be very basic to some but all new to me
I have an application running on SCO Unix server which issues an HTTP Post request to a server with the results being returned in I.E browser window in XML format
I need to import these results into my customers application and dont know how to... (1 Reply)
Discussion started by: ccarcher
1 Replies
2. Shell Programming and Scripting
Hi,
i need a guide how to write a script which i can do a http request. Let say the request look like below;
http://www.test.com?txid=1&type=service&server=linux
I have a list of "txid" (in *.txt) and need to run all "txid" acordingly. So that mean, every transaction i have to refer "txid"... (7 Replies)
Discussion started by: malaysoul
7 Replies
3. UNIX for Dummies Questions & Answers
Can anybody tell about http request processing in shell script..? (3 Replies)
Discussion started by: noufal
3 Replies
4. Shell Programming and Scripting
How to hit HTTP Post Request along with sending XML data to a Remote server through command line utility like wget (or anything else). (0 Replies)
Discussion started by: sandeep reddy
0 Replies
5. Shell Programming and Scripting
Hello,
I have a file. its content are like below.
mdn:87439842
imsi:23082038203
Ctime:12082010 01:20:10
mdn:9324783783
imsi:402349823322
Ctime: 12072010 01:20:10
mdn:87439842
imsi:23082038203
Ctime: 23072010 01:20:10
mdn:87439842
imsi:23082038203
Ctime:18072010 01:20:10
mdn:87439842... (3 Replies)
Discussion started by: Sanket11
3 Replies
6. Shell Programming and Scripting
Hi All,
I am connecting to Oracle DB from UNIX script. Want to capture all dates between start date and end date and store them in file. Once this is done, want to read dates one by one. How to achive this in UNIX and Oracle? Please let me know if you have any idea on the same.
Thanks and... (4 Replies)
Discussion started by: Nagaraja Akkiva
4 Replies
7. Shell Programming and Scripting
I am running a website but I still have problems with the "service temporarily unavailable error". I want to make a simple check if the website is up and running. Does anybody has an idea how to do it? (the site is password protected, so you have to add a user and pwd before logging in).
... (2 Replies)
Discussion started by: jurgen
2 Replies
8. Shell Programming and Scripting
Hi I have an XML output like :
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <envelope>
- <body>
- <outputGetUsageSummary>
- <usgSumm rerateDone="5">
- <usageAccum accumId="269" accumCaptn="VD_DP_AR" inclUnits="9999999.00" inclUnitsUsed="0.00" shared="false" pooled="false"... (7 Replies)
Discussion started by: rkrish
7 Replies
9. Shell Programming and Scripting
Hi,
I am trying to write a shell script to parse the post request data that it received to a xml file. Below is the post request data that script is receiving.
-----------------------------7dd2339190c8e
Content-Disposition: form-data; name="param1"
1... (2 Replies)
Discussion started by: jdp
2 Replies
10. Shell Programming and Scripting
Hi ,
I have a sql query in the unix script ,whose output is shown below.I want to convert this output to HTML table format & send email from unix with this table as email body.
p_id src_system amount
1 A 100
2 B 200
3 C ... (3 Replies)
Discussion started by: jagadeeshn04
3 Replies
LEARN ABOUT DEBIAN
mkdoc::xml
MKDoc::XML(3pm) User Contributed Perl Documentation MKDoc::XML(3pm)
NAME
MKDoc::XML - The MKDoc XML Toolkit
SYNOPSIS
This is an article, not a module.
SUMMARY
MKDoc is a web content management system written in Perl which focuses on standards compliance, accessiblity and usability issues, and
multi-lingual websites.
At MKDoc Ltd we have decided to gradually break up our existing commercial software into a collection of completely independent, well-
documented, well-tested open-source CPAN modules.
Ultimately we want MKDoc code to be a coherent collection of module distributions, yet each distribution should be usable and useful in
itself.
MKDoc::XML is part of this effort.
You could help us and turn some of MKDoc's code into a CPAN module. You can take a look at the existing code at
http://download.mkdoc.org/.
If you are interested in some functionality which you would like to see as a standalone CPAN module, send an email to
<mkdoc-modules@lists.webarch.co.uk>.
DISCLAIMER
MKDoc::XML is a low level XML library.
MKDoc::XML::* modules do not make sure your XML is well-formed.
MKDoc::XML::* modules can be used to work with somehow broken XML.
MKDoc::XML::* modules should not be used as high-level parsers with general purpose XML unless you know what you're doing.
WHAT'S IN THE BOX
XML tokenizer
MKDoc::XML::Tokenizer splits your XML / XHTML files into a list of MKDoc::XML::Token objects using a single regex.
XML tree builder
MKDoc::XML::TreeBuilder sits on top of MKDoc::XML::Tokenizer and builds parsed trees out of your XML / XHTML data.
XML stripper
MKDoc::XML::Stripper objects removes unwanted markup from your XML / HTML data. Useful to remove all those nasty presentational tags or
'style' attributes from your XHTML data for example.
XML tagger
MKDoc::XML::Tagger module matches expressions in XML / XHTML documents and tag them appropriately. For example, you could automatically
hyperlink certain glossary words or add <abbr> tags based on a dictionary of abbreviations and acronyms.
XML entity decoder
MKDoc::XML::Decode is a pluggable, configurable entity expander module which currently supports html entities, numerical entities and basic
xml entities.
XML entity encoder
MKDoc::XML::Encode does the exact reverse operation as MKDoc::XML::Decode.
XML Dumper
MKDoc::XML::Dumper serializes arbitrarily complex perl structures into XML strings. It is also able of doing the reverse operation, i.e.
deserializing an XML string into a perl structure.
AUTHOR
Copyright 2003 - MKDoc Holdings Ltd.
Author: Jean-Michel Hiver
This module is free software and is distributed under the same license as Perl itself. Use it at your own risk.
SEE ALSO
Petal: http://search.cpan.org/dist/Petal/
MKDoc: http://www.mkdoc.com/
Help us open-source MKDoc. Join the mkdoc-modules mailing list:
mkdoc-modules@lists.webarch.co.uk
perl v5.10.1 2005-03-10 MKDoc::XML(3pm)