http://leonardorame.blogspot.com
--- On Fri, 5/15/09, Graeme Geldenhuys wrote:
> From: Graeme Geldenhuys
> Subject: Re: [fpc-pascal] Re: XML pretty formatter
> To: "FPC-Pascal users discussions"
> Date: Friday, May 15, 2009, 6:09 AM
> On Fri, May 15, 2009 at 11:01
On Fri, May 15, 2009 at 11:01 AM, Michael Van Canneyt >
> IMHO we should have the latter. We have a near-complete DOM implementation
> in native object pascal, we have XPath in native pascal. It seems only natural
> to have XSLT native as well...
That would be nice obviously, but it's not somethin
On Fri, 15 May 2009, Graeme Geldenhuys wrote:
> On Fri, May 15, 2009 at 8:43 AM, Michael Van Canneyt
> wrote:
> >
> > I think he meant a pascal version of the xsltproc program.
>
> Oh, my mistake.. xsltproc is just a frontend for the libxslt library.
> So you should be able to write a object p
On Fri, May 15, 2009 at 8:43 AM, Michael Van Canneyt
wrote:
>
> I think he meant a pascal version of the xsltproc program.
Oh, my mistake.. xsltproc is just a frontend for the libxslt library.
So you should be able to write a object pascal program that talks to
the libxslt library directly (like
On Fri, 15 May 2009, Graeme Geldenhuys wrote:
> On Thu, May 14, 2009 at 8:15 PM, Leonardo M. Ramé
> wrote:
> >
> > BTW, is there any Pascal source code out there to do this?.
>
> I'm sure you can convert the .xsl file to pascal source, but that
> might just be more effort than it's worth.
I
On Thu, May 14, 2009 at 8:15 PM, Leonardo M. Ramé wrote:
>
> BTW, is there any Pascal source code out there to do this?.
I'm sure you can convert the .xsl file to pascal source, but that
might just be more effort than it's worth.
Regards,
- Graeme -
_
ot.com
--- On Thu, 5/14/09, Seth Grover wrote:
> From: Seth Grover
> Subject: [fpc-pascal] Re: XML pretty formatter
> To: fpc-pascal@lists.freepascal.org
> Date: Thursday, May 14, 2009, 2:06 PM
> I don't know what your requirements
> are for platform/la
I don't know what your requirements are for platform/language, but
this works nicely for me:
--
#!/usr/bin/perl
use XML::Tidy;
my $xmlFile = '/path/to/filename';
my $tidy_obj = XML::Tidy->new('filename' => $xmlFile);
$tidy_obj->tidy();
$tidy_obj->write();