32 Topics

Member Avatar for
Member Avatar for hassanumair1

how can i convert xml based script; which is created by SqlYog software. I want to convert this xml based script to batch file (full coding from xml to batch file script; not only batch(.bat) format.) So i can run the synchronization / backup directly clicking with batch file. give …

Member Avatar for jimmichaels29
0
2K
Member Avatar for Ahmed_65

I am using XML:twig to extract some attributes from an XML file using Perl; Here is my code: use XML::Twig; my $file = $ARGV[0]; $file =~ /(.+)\.xml/; my $outfile = $1.".snp" ; open my $out,'>',$outfile or die "Could not open file '$outfile' $!"; my $twig = XML::Twig->new ( twig_handlers => …

Member Avatar for 2teez
0
296
Member Avatar for hasvi

Hi I want to call the xml file and I want to change the tag name. here sample coding of get txt file. my $inputtxt=$ARGV[0]; open(TXT,"$inputtxt"); my $txtstr=join("",<TXT>); close TXT; $txtstr =~ s#\n\n#\n#sgi; # print $txtstr; open (OUT,">$inputtxt\.txt"); print OUT $txtstr; close (OUT); I need how to call xml file, …

Member Avatar for class11a
0
233
Member Avatar for Hari_8

Hello Everyone I am struck how to start script in my .txt file i have some of ips and i need to retive the ip and it need to convet into xml file in .txt file ips like his client1-10.1.1.1/24 clientgw1-10.1.1.2 server1-10.1.1.3/24 servergw1-10.1.1.4 client2-10.1.2.1/24 clientgw2-10.1.2.2 server2-10.1.2.3/24 servergw2-10.1.2.4 client3-10.1.3.1/24 clientg3w-10.1.3.2 server3-10.1.3.3/24 …

Member Avatar for 2teez
0
212
Member Avatar for M.Waqas Aslam

Dear All! I am facing a small issue in showing xml in a proper format. I am getting proper xml data from my webservice. but after receiving it browser is treating it as a text and showing all test in single line. I want to show my xml data same …

Member Avatar for minitauros
0
592
Member Avatar for xyciana

Hi, I know the basics of perl and really need a dummies guide (simple steps) to get the following working. I came across the code below and downloaded the Twig.pm and Xpath.pm files into C:\Perl\lib (Windows machine) from CPAN and I cannot get the code to compile. Can someone give …

Member Avatar for 2teez
0
953
Member Avatar for arulkumar_1

Input Files: ============ XML ==== <para>some Text</para> <para>some Text</para> <para>some Text</para> <para>some Text</para> <para>some Text</para> <para>some Text</para> Text File ========= some Text<insert>New Text</insert> some Text <delete>some</delete> Text some Text some Text some Text some Text OUTPUT: ======= <para>some TextNew Text</para> <para>some Text</para> <para> Text</para> <para>some Text</para> <para>some Text</para> <para>some Text</para> …

Member Avatar for arulkumar_1
0
236
Member Avatar for arupface

Hi I do have XML as below: <?xml version="1.0" encoding="UTF-8"?> <library> <book publisher="Del Rey"> <series>The Lord of the Pings</series> <title>Way Station</title> <author>Clifford D. Simak</author> </book> <book publisher="Del Rey"> <series>The Lord of the Rings</series> <title>The Fellowship of the Ring</title> <author>J.R.R. Tolkien</author> </book> <book publisher="Del Rey"> <series>The Lord of the Rings</series> <title>The …

Member Avatar for gusano79
0
250
Member Avatar for sureshspeaks

Hi im an infant in perl scripting, Can any body help me in writing the code snippet for my need to parse xml file. i have an xml file which will have tag x,y,z repeating with different values through out the xml start and end tag, i need these different …

Member Avatar for DoRight
0
356
Member Avatar for rdhoggan

Hey all, I have built a Perl script for parsing XML in an email message attachmen. Essentially the script works when there is one email message in the inbox but breaks when there are 2+. The "unblessed reference" error is on the line that uses XMLin. I am not sure …

0
76
Member Avatar for krish0202

I have an XML file that has 144 columns for the last 12 year's rolling data -- and the column name: goes like this: Column> <Selected/> <SourceName>09/1999 XYZValue</SourceName> <DestinationName>Sep1999_XYZDestination</DestinationName> <TypeName>FLOAT</TypeName> </Column> <Column> <Selected/> <SourceName>10/1999 XYZValue</SourceName> <DestinationName>Oct1999_XYZDestination</DestinationName> <TypeName>FLOAT</TypeName> </Column> ......... all the way to <Column> <Selected/> <SourceName>08/2011 XYZValue</SourceName> <DestinationName>Aug2011_XYZDestination</DestinationName> <TypeName>FLOAT</TypeName> </Column> …

0
83
Member Avatar for tifrah2005

hi, i have the following xml : <ADR> <Resolvers InitOnlyUsedResolvers="Yes"> <Resolver Name="LD" ClassName="com.comverse.mms.adr.resolvers.LDResolver"/> <Resolver Name="NPM" ClassName="com.comverse.mms.adr.resolvers.NPMResolver"/> <Resolver Name="LZR" ClassName="com.comverse.mms.adr.resolvers.LZRResolver"/> <Resolver Name="Validator"ClassName="com.comverse.mms.adr.resolvers.ValidatorResolver"/> <Resolver Name="NonSub" ClassName="com.comverse.mms.adr.resolvers.NonSubResolver"/> <Resolver Name="VASRR" ClassName="com.comverse.mms.adr.resolvers.VASRNGResolver"/> [COLOR="red"]<[B]Resolver Type="Plugin" Name="AdrPlug" ClassName="AdrLdapConnector"/>[/B][/COLOR] </Resolvers> </ADR> i need to add to the above xml the line in red on this exact place. i …

0
90
Member Avatar for metronomu

Hello , the problem is this, i need to install the XML-LibXML library and it seems to be easier to put salt in your eyes than to realize this. I get the error below which basically states that i cannot install the library because i don't have libxml2 installed. Of …

0
110
Member Avatar for pragati_2010

I have a csv file and i want to convert the same in Xml tree structure can some one tell me how is that possible the xml structure will have many child element as below: <parents> <child> <name1/> <name2/> </child> <child> <name1/> <name2/> </child> </parents>

Member Avatar for d5e5
0
141
Member Avatar for amithlaxman

I have an XSD here. [CODE] <?xml version="1.0" encoding="ISO-8859-1" ?> - <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> - <xs:element name="shiporder"> - <xs:complexType> - <xs:sequence> <xs:element name="orderperson" type="xs:string" /> - <xs:element name="shipto"> - <xs:complexType> - <xs:sequence> <xs:element name="name" type="xs:string" /> <xs:element name="address" type="xs:string" /> <xs:element name="city" type="xs:string" /> <xs:element name="country" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> …

0
86
Member Avatar for suther

I need one help.. I have faced problem, while sending XML request to Message Queue. Message has posted to Message Queue(body), but with dot between characters.eg: (T.e.s.t.M.e.s.s.a.g.e) Is there any message format to send plain text? sub sendInbox() { my $Body = shift; #my $Queue = "DIRECT=OS:tandbpc137\\private\$\\testqueue"; my $Queue = …

0
71
Member Avatar for boshu

Hi all, I am in fruit industry and dealing with stock inventory of fruits. I got 2 files, one file got fruit names (fruit.txt) and other file got the inventory status (status.txt). Task for me was to check the fruit list and update the inventory status: Contents of the files: …

Member Avatar for boshu
0
405
Member Avatar for ajay_p5

Hello Everyone I am having some trouble in parsing a XML document with a perl script. I have a file like the attached file(I have just taken a part of the original file as it is too big to be posted overhere and is hard to analyze manually). Now, what …

Member Avatar for richieking
0
327
Member Avatar for qiwenfarmer

hi, I am a newbie. I have a simple perl script that write to a text file I created a mxml page using flex, anyone know how can I execute the perl script from mxml page? Also, I wish the perl script can retrieve the user input from the text …

0
59
Member Avatar for ninja_girl

I was wondering if it were possible to extract the hashes from the XML:: Simple output without knowing the elements' name beforehand? I've searched the web and only found tutorials how to get elements from a certain file with certain tags. [CODE]use XML::Simple; use XML::Parser; use Data::Dumper; my $file1 = …

Member Avatar for vitana
0
90
Member Avatar for wmsigler

Is it possible to apply XSLT on XML output from a Perl CGI script? I.e. I have a registration form, when submitted it makes an Ajax request, building a query string from the form inputs. The request is made to a Perl CGI script. This script can be called two …

0
105
Member Avatar for prajnapj

how to compare two directories that contain xml files in perl.. and prints the content that is modified, added and deleted

Member Avatar for gginnj
-1
96
Member Avatar for duke5700

Hi all, Just a noob with an easy question :). Given this DTD [code]<!ELEMENT multimedia_format (description, examples, references)> <!ATTLIST multimedia_format name CDATA #REQUIRED> <!ELEMENT description (p+)> <!ELEMENT p ((text|em|strong|abbr|quoted_text|citation)*)> <!ELEMENT text (#PCDATA)> <!ELEMENT em (#PCDATA)> <!ELEMENT strong (#PCDATA)> <!ELEMENT abbr (#PCDATA)> <!ATTLIST abbr fulltext CDATA #REQUIRED> <!ELEMENT quoted_text (#PCDATA)> <!ATTLIST …

0
71
Member Avatar for rpetras

I am having trouble running some test code using SOAP::Lite for perl. The code (listed below) simply hits a prime number generator that is freely available that I found through xmethods.net. It should be relatively simple test code, the only complication being the internal proxy server, but that seems to …

Member Avatar for rpetras
0
161
Member Avatar for ITSAMB

Hello experts, I need your help in installing a Perl module. I am trying to install XML::LibXML on development server from couple of days now. I do not want to compile and install the module manually, as it needs some C components. I would like to install the binary distribution …

0
71
Member Avatar for mimsc

Hi im new to perl..I normally code java...but the boss got me trying to fix this issue... Anyway,we get a news feed that comes in as an xml file...this feed now requires "basic HTTP authentication"...the old feed didint require this , so there was nothing implemented in the code, ...anyway …

Member Avatar for KevinADC
0
93
Member Avatar for AbhijeetChavan

I need to develop a Tool to compare 2 XML files using Perl. Can any one give me a start up for this?

0
70
Member Avatar for susuoi

Hi, I'm learning perl and web application now. I have a xml data as shown below. <?xml version="1.0" encoding="utf-8" ?> <rsp stat="ok"> <photos page="1" pages="102" perpage="2" total="508"> <photo id="1969474222" owner="20137329@N04" secret="8ebd15f901" server="2185" farm="3" title="allen-iverson-dunks" ispublic="1" isfriend="0" isfamily="0" /> <photo id="1952424144" owner="7974492@N03" secret="a18966828b" server="2241" farm="3" title="Celtics vs. Nuggets" ispublic="1" isfriend="0" isfamily="0" …

Member Avatar for susuoi
0
119
Member Avatar for joeandersen

I can compare two XML files by using differencing tool ExamXML from [url]http://www.a7soft.com[/url]. I need to compare two folders that contain XML files in Perl script. Thanks.

Member Avatar for KevinADC
0
52
Member Avatar for Mushy-pea

Hello everyone. I'm working on getting threads of replies to work in my forum system. I'm using this function: [code=perl] sub read_fields { my($offset1, $offset2, $offset3, $offset4, $this_offset, $result, $n, $dbase, $data, @field_name, @name_length, $num_fields, $m, $check, $check2, $primary_key, $action, @passed_array); ($offset1, $offset2, $result, $dbase, $num_fields, $m, $action, $primary_key, @passed_array) …

0
63
Member Avatar for hbmarar

Hi , Good Morning! Doubt : How to add a hyperlink in xml file. System: Need to plot points on a map.This points x,y coridinates a link is the information contained in the <node> tag.I use php to write this xml file by taking information from the database at each …

Member Avatar for hbmarar
0
147
Member Avatar for msvinaykumar

Hi, Please explain me how XML is useful . Please give me any Case study example. Vinay

Member Avatar for KevinADC
0
147