how to prevent xml tag in html file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bijay Singh
    New Member
    • Dec 2010
    • 3

    how to prevent xml tag in html file

    Hello,

    When i try to make html file from xml file using xsl transformation through c/c++ api functions, i get tag <?xml version="1.0"?> added in the html file. Which api should i use, so that this tag <?xml version="1.0"?> should not appear in html file?

    Regards,
    Bijay
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    what type have you specified in the XSL file for the output (i.e. <xsl:output method="?">)

    Comment

    • Bijay Singh
      New Member
      • Dec 2010
      • 3

      #3
      i have used

      <xsl:output omit-xml-declaration="ye s"/>

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        maybe you should add: method="html"

        Comment

        • Bijay Singh
          New Member
          • Dec 2010
          • 3

          #5
          ok, i have added like this,

          <xsl:output method="html" omit-xml-declaration="ye s"/>

          but still i am getting <?xml version="1.0"?> in html file. Is there any c/c++ function to remove this?

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            I have no experience in C/C++, so I can’t tell, but I suspect the XML prolog comes indeed from the C processing code as I have never had an XML prolog with those settings.

            Comment

            Working...