Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - saveXML? >Thread Next - Re: saveXML? Re: saveXML?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/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
