IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: Alexander.Linkov
About
User Name: Alexander.Linkov
Forum Rank: Newbie
Real Name:
Location
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Friday, October 21, 2016
Last Visit: Thursday, May 11, 2017 9:53:51 AM
Number of Posts: 3
[0.02% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: Loading HTML JavaScripts in XMLSpy
Posted: Thursday, May 11, 2017 9:53:35 AM
I cannot find a forum for the XMLSpy product, so I post it here.

I use XSL-transformation to get HTML from a source XML. Resulting HTML must load jQuery and Bootstrap scripts. The problem is that XMLSpy throws an error, when open the HTML:


The most interesting thing, that when I open the generated HTML file in a browser, it opens well and all the scripts work.

Does XMLSpy has some limitations on loading scripts? Or which JavaScript version does it support?
If it must work, what is wrong? It is not really convenient to click "yes" for each script and then open the file in a browser.
Topic: How to use Documents.NewFileFromText method
Posted: Monday, October 24, 2016 7:09:03 AM
I am looking forward to fix!

Thank you!
Topic: How to use Documents.NewFileFromText method
Posted: Friday, October 21, 2016 3:17:03 PM
Hello!

I try to create a macros, and stack with using the Documents.NewFileFromText() methods.
I have a plain html source, similar to this:
Code:
<!DOCTYPE html>
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Some Title</title>
</head>
<body>
......
</body>
</html>

I want to create a new file with this content by using the:
Code:
Application.Documents.NewFileFromText(htmlcontent, "html");

but I get
Code:
"0x800406a9 - Altova.Application: Documents: Documents: error setting text as xml content"

Even when I try to use:
Code:
Application.Documents.NewFileFromText("text", "txt");

I get the same error.
What am I doing wrong?

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.