[ic] XML Question

Stefan Hornburg racke at linuxia.de
Tue May 31 12:43:12 EDT 2005


On Tue, 31 May 2005 09:52:11 -0400
"Jason Korkin" <jkorkin at korksoft.com> wrote:

> Hi All:
> 
> Interchange 5.2.0
> 
> I'm trying to do a remote post with XML to a page that I wrote that parses
> using XML::Simple from CPAN.
> 
> Interchange keeps stripping off the leading '<' in all of the XML that I'm
> posting which is causing some problems.  
> 
> How can I get IC to stop doing that?

I don't know if I know the answer to your question, but I'm using an ActionMap
for a similar purpose:

ActionMap sync <<EOR
sub {
	my ($xml, $twig, $twigback, $root);
	my $success = 1;

	# create twig object for answers
	$twigback = $Tag->filter('xml_twig', '<mbs-sync></mbs-sync>');

	if ($CGI->{sync}) {
		# access "uploaded file" aka XML content
		$xml = $Tag->value_extended({name => 'sync', file_contents => 1});
		# turn into an XML::Twig object
		$twig = $Tag->filter('xml_twig', $xml);

....

Bye
	Racke

-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team



More information about the interchange-users mailing list