creating an XML document using xml::dom

2014-08-20 Thread angus
look like john.doe FAKEPASSWD 1 I have been looking for a perl module to help me create this and I think using XML::DOM may solve this need. I have the following code so far which almost provides the first attribute and string value. #!/usr/bin/perl use strict; use warnings; use XML

creating an XML document using xml::dom

2014-08-20 Thread angus
look like john.doe FAKEPASSWD 1 I have been looking for a perl module to help me create this and I think using XML::DOM may solve this need. I have the following code so far which almost provides the first attribute and string value. #!/usr/bin/perl use strict; use warnings; use XML

Re: Problem printing double quotes in XML using XML::DOM

2013-11-30 Thread Brian Fraser
On Sun, Dec 1, 2013 at 7:28 AM, Shaji Kalidasan wrote: > Dear Shlomi, > > I tried to install https://metacpan.org/release/XML-LibXML in my windows > setup (using Strawberry Perl 5.18.1 on Windows 7) but it failed. Please > suggest where am I going wrong? > > Here is the output from console (comman

Re: Problem printing double quotes in XML using XML::DOM

2013-11-30 Thread Shaji Kalidasan
«"» and is often required if specified as the value of a double quotes-enclosed attribute (e.g: «»), so you should not worry about it being output instead. Furthermore, I should note that according to http://cpanratings.perl.org/dist/XML-DOM , XML::DOM has been

Re: Problem printing double quotes in XML using XML::DOM

2013-11-29 Thread Shaji Kalidasan
.wikipedia.org/wiki/Character_entity_reference ) which is the same as giving double quotes - «"» and is often required if specified as the value of a double quotes-enclosed attribute (e.g: «»), so you should not worry about it being output instead. Furthermore, I should note that according to

Re: Problem printing double quotes in XML using XML::DOM

2013-11-29 Thread Shlomi Fish
eing output instead. Furthermore, I should note that according to http://cpanratings.perl.org/dist/XML-DOM , XML::DOM has been under-maintained and largely superseded by https://metacpan.org/release/XML-LibXML (which I should note that I

Problem printing double quotes in XML using XML::DOM

2013-11-28 Thread Shaji Kalidasan
Dear Perlers, I am trying to print double quotes in the output (output.xml) but it is printing " instead of "". How can I include double quotes "" in the output. Please help. Here is the code [code] #!/usr/bin/perl use strict; use warnings; use XML::DOM; my $parse

Re: XML DOM-like processing

2009-04-04 Thread Jenda Krynicky
From: "Stanisław T. Findeisen" > Hello > > What Perl modules for XML DOM-like processing would you recommend? I > would like to read an XML document, traverse it making some changes, and > write it out. I also want to be able to check for its well-formedness. If you d

XML DOM-like processing

2009-04-04 Thread Stanisław T. Findeisen
Hello What Perl modules for XML DOM-like processing would you recommend? I would like to read an XML document, traverse it making some changes, and write it out. I also want to be able to check for its well-formedness. Thanks! STF

Re: unwanted escaping of & with XML::DOM

2008-02-10 Thread Gunnar Hjalmarsson
Alois Heuboeck wrote: Gunnar Hjalmarsson wrote: What if you simply say: my $titleText = 'Die Brücke.'; you mean resolving the entities first? It's a possibility, but at the moment I'd like to see the form of the input as a given. (The script I posted to the list is a simplified test ve

Re: unwanted escaping of & with XML::DOM

2008-02-09 Thread Alois Heuboeck
Gunnar Hjalmarsson wrote: Alois Heuboeck wrote: I'm trying to feed text into an existing XML tree - the problem I'm encountering is that the text may contain entity references (including the 'forbidden' '&'), in which case the & is escaped by '

Re: unwanted escaping of & with XML::DOM

2008-02-09 Thread Gunnar Hjalmarsson
Alois Heuboeck wrote: I'm trying to feed text into an existing XML tree - the problem I'm encountering is that the text may contain entity references (including the 'forbidden' '&'), in which case the & is escaped by '&'. I'm using the m

unwanted escaping of & with XML::DOM

2008-02-09 Thread Alois Heuboeck
Hi I'm trying to feed text into an existing XML tree - the problem I'm encountering is that the text may contain entity references (including the 'forbidden' '&'), in which case the & is escaped by '&'. I'm using the module XML::DOM

XML::DOM

2004-11-05 Thread E.Horn
once again! how do i get the text between two tags by parsing with XML::DOM my programm #!/xprog/bin/perl -w use XML::DOM; my $file = 'xml'; my $parser = XML::DOM::Parser->new(); my $doc = $parser->parsefile($file); my $nodes = $doc->getElementsByTagName('

Re: XML::DOM::Parser question !

2004-06-07 Thread Wiggins d'Anconia
u need to write it back out. http://danconia.org -Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] Sent: Monday, June 07, 2004 8:09 PM To: Ravinder Arepally Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: XML::DOM::Parser question ! Ravinder Arepally wrote:

RE: XML::DOM::Parser question !

2004-06-07 Thread Ravinder Arepally
Thanks, Ravi -Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] Sent: Monday, June 07, 2004 8:09 PM To: Ravinder Arepally Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: XML::DOM::Parser question ! Ravinder Arepally wrote: > All, > >

Re: XML::DOM::Parser question !

2004-06-07 Thread Wiggins d'Anconia
ot;$depotLocation/updates/$udtBaseName/tasks/$udtBaseName"."_cs_udt.xml"; print ("udtTaskfile is : $udtTaskFile \n"); --- XML file which is pasted at end of this mail. Util::safeCopy("$udtTaskFile", "$udtTaskFile".time()); -- I have Util.p

XML::DOM::Parser question !

2004-06-07 Thread Ravinder Arepally
pdates/$udtBaseName/tasks/$udtBaseName"."_cs_udt.xml"; print ("udtTaskfile is : $udtTaskFile \n"); --- XML file which is pasted at end of this mail. Util::safeCopy("$udtTaskFile", "$udtTaskFile".time()); -- I have Util.pm my $parser = new XML::DOM