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

Discussion in 'XML' started by ouioui2000, Sep 13, 2005.

  1. ouioui2000

    ouioui2000 Guest

    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" ?
    ouioui2000, Sep 13, 2005
    #1
    1. Advertising

  2. ouioui2000 wrote:

    > 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.
    J??rgen Kahrs, Sep 13, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mahesh
    Replies:
    2
    Views:
    277
  2. sandeep
    Replies:
    11
    Views:
    713
    jmcgill
    Sep 28, 2006
  3. Replies:
    0
    Views:
    312
  4. abolanah12

    can you say it please

    abolanah12, Dec 1, 2009, in forum: Python
    Replies:
    2
    Views:
    288
    Steven D'Aprano
    Dec 1, 2009
  5. Zhidian Du
    Replies:
    2
    Views:
    99
    David Efflandt
    Feb 21, 2004
Loading...

Share This Page