How can i say to the browser "He guy, my flow is XML" ?

O

ouioui2000

Hi,

I try to generate xml flow with javascript in a new windows.
Here is my javascritp code :
<code>
fenetrePopUp =
window.open('','_blank','width=500,height=300,scrollbars=yes,status=yes,resizable=yes');
fenetrePopUp.document.open("application/xml+xsl");
fenetrePopUp.document.write(myCodeXML);
</code>

Here is the content of myCodeXML variable :
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="surface.xsl"?>
<STUCTURE id=155 >
</STUCTURE>

The browser (IE) window don't print anything ! He don't reconize my xml
format.
How can i say to the browser "He guy, my flow is XML" ?
 
J

J??rgen Kahrs

ouioui2000 said:
Here is the content of myCodeXML variable :
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="surface.xsl"?>
<STUCTURE id=155 >
</STUCTURE>

The data above is not well-formed.
Use " around the value 155 of the attribute.

The browser (IE) window don't print anything ! He don't reconize my xml
format.

Use offline tools like xmllint.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top