Can someone tell me how to get these modules:
XML::LibXML;
XML::LibXML::XPathContext;
They seem not to be an option using PPM.
Perl 5, version 20, subversion 2 (v5.20.2) built for
MSWin32-x86-multi-thread-64int
Many thanks.
-Dave
___
Perl-Win32
Hello Jenda,Here is my code so far. use strict;
use Data::Dumper;
use XML::Rules;
$filename = "c:\temp\infile.xml";
$targetfile = "c:\temp\outfile.xml";
@rules = (_default => 'raw',
Item => sub {
if ($_[1]{_content} =~
From: Paul Rousseau
> I have an .xml file that I want to search for specific items, ignoring the
> remaining items.
>
> I want to be able to maintain the .xml file integrity, so I want to open the
> original and after finding what I am looking for, dump the results to a
>
This looks like a good application for XML::Twig. The SYNOPSIS for that module
shows examples of how to setup handlers for matching and processing an XML file.
HTH,
Dave Clarke
From: perl-win32-users-boun...@listserv.activestate.com
[mailto:perl-win32-users
Hello Users.
I have an .xml file that I want to search for specific items, ignoring the
remaining items. I have dumped the .xml file using the tree method. Partial
results look as follows:
$VAR1 = [
'Session',
[
{},
Hello ,
I installed XML-LibXML on perl 5.8.0 build 806 via bribes repo. [on Windows]
The installation went well, but when I use the module in a script I get he
following error.
Please advise what cld be the problem.
First a pop-up says - "The procedure entry point Perl_Ilockhook_ptr coul
- Original Message -
From: "Neson Maxmelbin (RBEI/EMT4)"
To:
Sent: Friday, March 13, 2009 6:58 PM
Subject: XML::LibXML
Hello All,
I am trying to find the ppd file for XML::LibXML module ..
Can anyone provide me a link ..
My perl ver is v5.6.1
Hello All,
I am trying to find the ppd file for XML::LibXML module ..
Can anyone provide me a link ..
My perl ver is v5.6.1 build 638
Thanks in advance for your help
Thanks and Regards
Maxmelbin Neson
___
Perl-Win32-Users mailing list
Perl-Win32
x27;t produce utf8 flag any more.
I found it's not so easy to utf8::downgrade "all" data, cause
the data is so complicated returned from XML Parser.
The next code is not good.
my $grove_builder = XML::Grove::Builder->new;
my $parser = XML::Parser::PerlSAX->new ( Handler =>
tf8;
>
> The stripped data is but in utf8.
The next data is also utf8, I din't treat it.
'0' [30] (1)(1)
When I processed all data like;
utf8::downgrade($_);
then the concatination din't produce utf8 flag any more.
So I reached one so
> Now I can strip this (maybe) utf8 flags after "URL-decode",
> but these data
> becomes utf8 again just before DB2 insert modules.
I found this is due to the concat ".".
$utf8 = de_utf8($utf8);
my $str_utf8 = $no_utf8 . $utf8;
The stripped data is but in utf8.
Regards,
H.T.
___
Hello,
I met a trouble just describing blow,
XML::Parser Encoding (UTF-8 -> ISO-8859-1)
http://www.netwise.it/xml/perlmonks/?node_id=197119
I'm porting some scripts written when perl 5.005 to perl 5.8.
These scripts are using,
XML::Grove 0.46 alpha
XML::Parser 2.
--Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Chris O
> Sent: Friday, February 02, 2007 1:34 PM
> To: perl-win32-users@listserv.ActiveState.com
> Subject: SOAP & XML via https
>
> Hey gurus! It's been a while s
Hey gurus! It's been a while since I've posted here.
My latest task involves downloading faxes from myfax.com. I have a working
PHP example (attached) that retrieves an XML list of inbound faxes and I
need to convert this to Perl but I don't know where to start.
Can someone
Hey gurus! It's been a while since I've posted here.
My latest task involves downloading faxes from myfax.com. I have a working
PHP example (attached) that retrieves an XML list of inbound faxes and I
need to convert this to Perl but I don't know where to start.
Can someone
If character escaping is your only problem, all you have to do is this:
use CGI qw/:all/;
print escapeHTML($xml);
--
Mark Thomas
Internet Systems Architect
___
BAE SYSTEMS Information Technology
2525 Network Place
Herndon, VA 20171 USA
]
Gesendet: Mi 10.05.2006 16:13
An: Bruno Georges
Cc: Perl Users
Betreff: Re: XML Output to Web
Thanks, Bruno.
I've been using XML::Writer to generate the XML and that works well.
Problem is I need to
displa
Hi Carter
I believe that there are perl modules that just does exactly that, helping
you to escape the generated XML.
In the meantime you can test your output with the (deprecated but still
supported) HTML tag: xmp
so your code XML will look like:
With Best Regards
Bruno Georges
Glencore
Wow, that's it? Thanks, Mark.
Seems to do exactly what I want.
print $q->escapeHTML($xml);
Carter.
On May 10, 2006, at 8:20 AM, Thomas, Mark - BLS CTR wrote:
If character escaping is your only problem, all you have to do is
this:
use CGI qw/:all/;
print escapeHTML($xml);
Thanks, Bruno.
I've been using XML::Writer to generate the XML and that works well.
Problem is I need to
display the generated XML code in a browser. To display the code
you generally need to
escape the special characters, like the '> < &' (>, < &)
Hi Carter
I suggest you have a look at the following XML modules:
In your scipt, these module should suffice.
use XML::Parser;
use XML::Simple;
# mod to convert from/to other output
use XML::Dumper;
use CGI::XML;
they should cover the basic XML parsing and generation requierment you
have
Hi,
I need a little help finding a module that will write XML to a
webpage. More specifically,
I have a CGI script that gathers information based on user input and
when all information
is collected I'd like to spit out XML for the user to cut and paste
into their favorite text e
hi...
i'm trying to find a mailing list specifically focused on XPath,
XML::LibXML
issues/questions. Can't seem to find any via google. can anyone point me
to
one, or should i simply post my questions here?
thanks
-bruce
[EMAIL PROTECTED]
Bruce,
There is the '
hi...
i'm trying to find a mailing list specifically focused on XPath, XML::LibXML
issues/questions. Can't seem to find any via google. can anyone point me to
one, or should i simply post my questions here?
thanks
-bruce
[EMAIL PROTECTED]
__
Mario Sanchez wrote:
hello everyone,
can you please point me to a package or script that will first determine
the columns of a database table, then output well formed XML? condition: i
do not know in advance the columns of the table.
example output where "field" = actual
hi...
are there any XML/Xpath gurus that i could talk to regarding the
processing/parsing/extraction of data from XML results.. i think i'm also
going to need to know how to quickly/correctly form the XML that forms the
input to the server...
this is for communicating/interfacing/extracting
James wrote:
Hi All,
I am trying to process a XML file and print some info
but my script is not printing anything.
Please help
Here is my code
You don't use "use strict;" or "use warnings;". Shame on you, James!
It would have told you what the problem was.
use XML::Simpl
Hi All,
I am trying to process a XML file and print some info
but my script is not printing anything.
Please help
Here is my code
use XML::Simple;
use Data::Dumper;
my $tempxml = "C:/temp/bom.xml";
my $bom = XMLin($tempxml);
my $itm =
$bom->{T_Stpo_Table}->{BOM_ITEM_API01
I'm beginning to learn XML in Perl also. I found this page very helpful:
http://www.xml.com/pub/a/2001/04/18/perlxmlqstart1.html
I gives a quick primer to a handful of XML modules available in Perl.
--Larry S.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTE
Hello ,
I have a xml doc like this
test
test
now if i want to insert a new item for ex: second inbetween the first and third
item elements which xml modules help in doing this? and do you have any
examples?
Any help will be appreciated.
Thxs,
Gazal
Hi All,
I got some pretty strange problems using XML::Writer where the file that
I'm
writing to ends up with almost twice the data that I'm trying to write.
I'll
try to make a simple example (in the order of operation) since the code
I'm
using is quite long.
In Init
Bhuvana,
XML questions are best asked on the perl-XML list. Many Twig users frequent
that list (even the author chimes in from time to time).
I'm not all that familiar with Twig, so what I can do is give you working
XML::LibXML code:
my $doc = XML::LibXML->new->parse_file($A
Hello,
Using xml twig, I am trying to supply two elements in a line with the
separator tab.
Ex:
ABCCDE
addeerwe
sdfsdfserewrwe
Expected Result:
ABCCDE
addeerwe
sdfsdfserewrwe
Obtained Result:
ABCCDE
addeerwe
sdfsdfserewrwerwe
i.e. After some characters are repeating
Mark,
You're absolutely right. I didn't mention that I wanted to add a new
node, fortunately for me you assumed correctly.
To answer your question on XML::Simple, I've used it to grab data from
the patches.xml file but not to write it out. After reading the
documentation
o
Pratibha,
Thank you for the example. I will definitely be making use of it.
On a similar note, what would be the best way to read the patches.xml
file in and add or make changes to the content and write it back out?
Read with XML::Simple, then write out with XML::Writer? Or is their
a more
Carter, you didn't say what you wanted to add, and where. I'll make the
assumption you want to add a sibling node to release version 2.0.
Here are a few options:
OPTION 1
Take another look at XML::Simple. I don't see anything in your XML that
wouldn't be possible
Hi
Not really sure about the scope of your request.
However, (unless some module exists already) I would suggest to look into
File::Find
from there you can write a routine which wrap the FS with your XML tags.
Hope this helps.
Bruno Georges
Glencore International AG
Tel. +41 41 709 3204
Fax
Hi folks,
I am wondering if anyone has tried this. I would need some help from
perl experts :)
I am looking for writing the whole unix file system into XML file.
Could someone give me information or related scripts that would help me?
Thanks guys :)
Looking forward
Thanks
Ramjee
Hi All,
I have to read a stream of XML (SOAP) messages sent to my perl script. I
have tried to use the XML::Stream module and also the SOAP::Lite modules
for this. But no success. Can someone please throw some light on this
topic? I tried to do a search on the web, but nothing helpful out there
Just my opinion but I think XML-RPC is a great way to accomplish that. I've
seen entire application APIs using XML recently and the concept we a great
idea. Would be a good way to make your processes modular too and allow to be
separated onto individual boxes later on if required.
Trevor Jo
Hi guys
I see XML-RPC generally used in the context of web services and
am wondering if Perl's XML-RPC modules can be utilized to
communicate between 2 perl processes on the same machine,
exchanging arbitrary perl data structures. I agree that there are
other approaches to exchange arbi
Title: jumbled XML
(B
(B
(B
(B
(B
(BHello,
(B
(B
(BI've been using XML in Perl for just a month.
(B
(BXML::Simple is good for me, my doc is so simple.
(B
(B
(BBut one incombinient is :
(B
(B"My element order is getting jumbled up"
(B
(Bin FAQ.
(B
(BUsua
Hi,
Let's go again on CPAN and look at CHACKER modul
http://search.cpan.org/~enno/libxml-enno-1.02/lib/XML/Checker.pm
---
Best regards
AlexBel
- Original Message -
DATE: Wed, 21 Jan 2004 21:58:06
From: Brian Gibson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc:
Brian Gibson wrote:
This might sound like a dumb question but does anyone know of a module or
script that simply checks an XML file to see if it is well-formed or not (the
validity of the XML is not an issue, but if there is an easy way to check that
too then I am all for it!)
My search
Trying to parse an RSS feed into html. I added XML::RSS-0.97 through my package manager just fine. I'm using indigoperl. I also tried ActiveState perl just in case, with the same error. Here is the full error message:Can't locate XML/Parser.pm in @INC (@INC c:\indigoperl/perl/site/lib/x
try XML::Simple => http://search.cpan.org/~grantm/XML-Simple/
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Gary
Nielson
Sent: Sunday, November 09, 2003 9:35 PM
To: [EMAIL PROTECTED]
Subject: Struggling with my first XML::Parser project
I have partia
the XML::Parser perldoc but don't
understand how startElement, endElement and characterData work together. Let
me show you my code and an example from the file I am trying to parse. I
have included a note in the code where I am getting stuck. I am looking for
advice and explanations.
Code:
To: Gary Nielson; [EMAIL PROTECTED]
Subject: Re: Uncaught exception from user code with XML::Parser
try replace && with &&
- Original Message -
From: "Gary Nielson" <[EMAIL PROTECTED]>
To: "David Liouville" <[EMAIL PROTECTED]>;
<[EMAI
try replace && with &&
- Original Message -
From: "Gary Nielson" <[EMAIL PROTECTED]>
To: "David Liouville" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, November 06, 2003 6:52 PM
Subject: RE: Uncaught exception f
aa.gov/alerts/us.html#KYZ044.JKLNOWJKL.145500
-Original Message-
From: David Liouville [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 12:41 PM
To: Gary Nielson; [EMAIL PROTECTED]
Subject: Re: Uncaught exception from user code with XML::Parser
It's probably an XML
It's probably an XML error ...
could you send the line 14580 of us.xml ?
- Original Message -
From: "Gary Nielson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 06, 2003 6:20 PM
Subject: Uncaught exception from user code with XML::Pars
That's not your problem. The error message says the XML file is not well
formed. Following your link confirms it. That file has an error in it.
The && on line 485 seems to be the problem. That's not a proper entity
reference.
--
Mark Thomas[EMAIL PROTECTED
I am learning to use XML::Parser. I am trying to pass a US Weather Service
xml file. I can successfully parse it until it dies on me with the following
error:
C:\TEMP\xml>perl weather.pl
Uncaught exception from user code:
not well-formed (invalid token) at line 14580, column 1, byte 477680 a
Rex,
Perhaps using CPAN might get you around the problem.
Assuming you have CPAN installed and configured:
perl -MCPAN -e 'install XML::Parser'
Cheers,
Carter.
> -Original Message-
> From: Arul, Rex [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06,
Sisyphus wrote:
- Original Message -
From: "John" <[EMAIL PROTECTED]>
To: "Perl-Win32-Users" <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 10:56 AM
Subject: Q XML-Parser upgrade
This morning I updated some XML modules. When I upgraded XML::Pa
This morning I updated some XML modules. When I upgraded XML::Parser I
got the following warning as part of the activity log.
[quote]
PPM> verify --location=. --upgrade XML::Parser
Upgrade package 'XML-Parser'? (y/N): y
Cannot forceunlink
E:/!PRG/Perl/Perl56\site\lib\auto\XML
on the program you use to see
them.
Like my cyrillic characters were more like Chinese in Komodo 2.0 output
window,
but showed fine in IE.
Good luck,
and please let me know how you resolved the issue.
Sasha
Fernando Freire Baez (Medicare) wrote:
Hello,
I am using XML::Simple to load all the
Thomas R Wyant_III wrote:
The things that XML::Simple will lose for you include:
* The order of duplicate tags (e.g. multiple tags).
Does this mean that contents of the value array in the code below could
be out of order? I ran it through 10 tags and I
couldn't find on
Phil -
You might want to look at XML::Simple. I get the impression XML::Parser is
the foundation of a _lot_ of XML code (including XML::Simple). XML::Simple
will load the XML into a data structure that looks a lot more like what you
probably want to massage with Perl. It goes to considerable
That's what I use. I have some sample code of how to use it if you would
like.
-Original Message-
From: Philip Morley [mailto:PMorley@;edisonmission.com]
Sent: Wednesday, October 30, 2002 8:28 AM
To: [EMAIL PROTECTED]
Subject: Help using XML::Parser
I am new to using XML, so can so
On Fri, 9 Aug 2002, Gladstone Alexander wrote:
> Can someone tell me how to set up my windows 2000 machine to use XML::LibXML
> in my perl scripts? What do I need and where can I get it?
> Thanks.
We have a XML::LibXML ppm package in our repository at
http://theoryx5.uwinnipeg.ca/pp
- Original Message -
From: "Gladstone Alexander" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 09, 2002 10:51 PM
Subject: XML::LibXML
> Can someone tell me how to set up my windows 2000 machine to use
XML::LibXML
> in my perl scripts? Wh
Geez. I almost forgot one of my favorites: The Template Toolkit. Very
powerful, easy to learn, and it can handle XML pretty well. You can get it
from CPAN; easy to install. See www.template-toolkit.org for more info.
jpt
> -Original Message-
> From: Martin Moss [mailto:
I'm not an expert in this area, but I've always assumed that AxKit
(www.axkit.org) was as good as the Java XML/XSLT solutions. AxKit is now an
official Apache Software Foundation project. The first sentence of the
feature list is "XSLT based pipelined XML transformations."
I
XSLT.
On Java
Okay, I'm OT now, sorry, but unless things have picked
up in the past six months (I'm sure they have) I'd never
recommend Perl for XML conversion.
lee
At 12:23 07/05/2002 +0100, Martin Moss wrote:
>All,
>
>just a quickie, any recommendations for con
XSLT is good at this. You can use Microsoft's XSLT objects through
Win32::OLE, or you can use the XML::XSLT perl module, which has less
functionality. I wish I had the skills and time to offer to make XML::XSLT
a better tool. I'm embarrassed that we have such poor XSLT support in ou
All,
just a quickie, any recommendations for converting from one XML doc to
another?
regards
Marty
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Sorry, I got out of the 'doing other people's homework for free' business
after grad school.
Steve
Hi Everybody,
I need help on this :
1) Generate an XML request.
2) Open a TCP socket to www.somename.com on port 100.
3) Strip out any carriage retur
Hi Everybody,
I need help on this :
1)
Generate an XML request.
2)
Open a TCP socket to www.somename.com on port 100.
3)
Strip out any carriage returns or linefeeds from my request.
4)
Send my request as plain ASCII text. Should send a CrLf when done.
5
Taras Shkvarchuk <[EMAIL PROTECTED]> wrote:
> I want to let values pass if they start with
> "cid:" or "file:" or if they don't have a ':' inside the string.
> I was thinking somthing like: /^(cid:.+|file:.+|.*(?!:).*)$/
> should work but it doesn't :(
Something that starts with "cid:" or "file:"
I need to NOT match
something in a regex for XML schema validation. And I need to do it all in one
command it looks like.
for example: I want
to let values pass if they start with "cid:" or "file:" or if they don't have a
':' inside the string.
I was thin
Have you checked the XML::* namespace in CPAN?
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Alex Lee
> Sent: 19 May 2001 19:49
> To: [EMAIL PROTECTED]
> Subject: XML
>
>
> HI all:
>
> Does anyone know
HI all:
Does anyone know if there is a module out there that
can parse specific xml tags from an xml file:
for example:
ca
march
ny
jan
: and have the parser give me all info embeded in
?
Thanks in advance!
Alex
9 May 2001
19:14To: [EMAIL PROTECTED];
[EMAIL PROTECTED]Subject: Re: problem installing
XML::parser-2.30
- Original Message -
From: pascal barbedor
To: [EMAIL PROTECTED]
Sent: Wednesday, May 09, 2001 4:39 PM
Subject: problem installing XML::parser
I finally succeeded to compile after renaming the orignal expat-project
(i.e. expat-1-95, you also have to change the name in the makefile, that
comes with xml-parser).
The reason for this is, that perl-Makefiles also generates a dll with the
name expat.dll. You have to be careful not to mix
below found in sourceforge.net, then
> recompiling expat 1.95.1 with vc6
> and copying released files
>
> expat.dll, expat.exp and expat.lib
I finally succeeded to compile after renaming the orignal expat-project
(i.e. expat-1-95, you also have to change the name in
;Delivered-To: [EMAIL PROTECTED]
>From: "Shantel Shave" <[EMAIL PROTECTED]>
>List-Subscribe:
><http://listserv.ActiveState.com/mailman/listinfo/xml-announce>,
>
><mailto:[EMAIL PROTECTED]?subject=subscribe>
>
>ActiveState is excited to annou
Im trying to install xml::parser and not having much luckim running win2000 pro. perl v.5.6
I couldn't find it using ppm. Does anyone know where it is...install it via nmake, but I get the error:Too many errors encountered; the rest of the message is ignored: Expat must be installed
Hi Nikola,
>From Indigostar's home page:
Quote
Installing CPAN modules requires that you have Microsoft DevStudio or
nmake.exe installed. If you are installing modules that contain xs files,
then you need DevStudio, otherwise you only need nmake.exe.
End Quote.
XML::Parser contains an
Dana 04.02.01, David LaPointe napisa:
> If the goal is to just get PPM fixed, there may be a faster way to do that.
> Why not just try using the MSI installer to uninstall Perl and then
> re-install it? I've done that a couple of times in the last couple of weeks,
> and it seems to work pretty we
What's the goal here?
Nikola Knezevic wrote:
> Hi,
> I was little curious, so I tried to install XML::Parser 2.30 without
> using PPM - by using classic UNIX metod: unpack, make, make install,
> etc...
> Everything started fine,..., and then my nightmare started.
If you
I'm needing a parser that will take an xml file and turn it into html. Does
anyone know of a module that does this?
byron
"When you sell a man a book, you don't sell him 12 ounces of paper and ink
and glue - you sell him a whole new life." - Christopher Morley
&qu
After having installed the new Build 620, it still looks like the older
version of XML::Parser 2.27 is being used. The most recent version is 2.30.
My problem is that for larger files, the parser seems to hickup once and
while (how's that for a technical term ;). Anyhow, it's a kno
>Has anyone uppgraded to the newer 2.30 version? I am having one heck of a
>time trying to install it. Maybe I could be so bold as to ask ActiveState
>to upgrade their ppm on the site?
>
>/Jill
Jill,
In trying to install the new XML::Parser module on at least 3 linux
84 matches
Mail list logo