[JDEV] XML Parser..
Ritu Khetan
ritu at netcore.co.in
Mon May 20 06:42:25 CDT 2002
Hi DJ,
I am not looking at Jabber right now. I am working on
another appln. which stores data in XML format.
I want to be able to read and write to that xml file
using a parser.
This what the xml looks like:
<permissions>
<user name=\"ritu\">
<subscribed>
<publisher name=\"veer\">
<node>1</node>
</publisher>
<publisher name=\"kalpit\">
<node>2</node>
</publisher>
</subscribed>
<shared>
<node id=\"1\">
<subscriber>rahul, veer</subscriber>
</node>
<node id=\"2\">
<subscriber>pankaj</subscriber>
</node>
</shared>
</user>
<user>
....
</user>
</permissions>
Regards,
Ritu
Quoting DJ Adams <dj.adams at pobox.com>:
> On Mon, May 20, 2002 at 03:59:10PM +0530, Ritu Khetan
wrote:
> > Hi all,
> >
> > I am looking for an XML::Parser in Perl which will
> > let me read and write xml documents using both elements
> > and attributes.
> > I found XML::Simple, but it supports either elements or
> > attributes at a time. I am writing an application which
> > needs to modify sub elements of a element depending upon
> > an attribute of that element.
>
> I\'m not sure exactly what you\'re looking for, but did you
> have a look at Jabber::NodeFactory[::Node]? It\'s part
of the
> Jabber::Connection distribution, and allows you to
read and
> write XML nodes in a flexible way...
>
> dj
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
>
More information about the JDev
mailing list