Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: saveXML?

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 11/3/2004 1:27:00 PM

Phlip wrote:

> Gaze into my Perl:
> 
>     my $dom = Win32::OLE->new('MSXML2.DOMDocument.4.0') or die "new() failed";
> 
>     $dom->{async} = "False";
>     $dom->{validateOnParse} = "False";
>     $dom->{SelectionLanguage} = 'XPath';
>     $dom->Load("myFile.xml") or die "Parse failed";
>    
>     my $case = $dom->selectSingleNode("/*[1]/*[3]");
>     my $attr = $case->attributes->getNamedItem("result_link");
>     $attr->{Text} = "data";
>    
>     $dom->saveXML();

The method is called save and not saveXML and you need to pass an 
argument, either a file name or another DOMDocument e.g. to save to a file
   $dom->save("myFile.xml");
(where that should be treated as pseudo code that you need to transcribe 
to Perl)

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent