XML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ats@jbex

    #1

    XML

    I am using the XMLTextWriter to create an xml document. It goes as follows:

    writer.WriteSta rtDocument

    writer.WriteSta rtElement
    writer.WriteEnd Element
    etc etc etc

    writer.WriteEnd Document

    The first line created is <?xml version="1.0" encoding="UTF-8"?>

    Between this line and the first element I need to add the following:

    <!DOCTYPE paymentService PUBLIC "DTD Name" "URL">

    How do I add this line using the XMLTextWriter?

    TIA
    --
    ats@jbex

    No mercy for what we are doing
    No thought to even what we have done
    We don't need to feel the sorrow
    No remorse for the helpless one

    Metallica - No Remorse
  • zacks@construction-imaging.com

    #2
    Re: XML

    On Sep 18, 9:50 am, "ats@jbex" <al...@allenjon es.NOSPAM.co.PL EASE.uk>
    wrote:
    I am using the XMLTextWriter to create an xml document. It goes as follows:
    >
    writer.WriteSta rtDocument
    >
    writer.WriteSta rtElement
    writer.WriteEnd Element
    etc etc etc
    >
    writer.WriteEnd Document
    >
    The first line created is <?xml version="1.0" encoding="UTF-8"?>
    >
    Between this line and the first element I need to add the following:
    >
    <!DOCTYPE paymentService PUBLIC "DTD Name" "URL">
    >
    How do I add this line using the XMLTextWriter?
    >
    As far as I am aware, the XMLTextWriter cannot write XML Comments.

    Comment

    • ats@jbex

      #3
      Re: XML

      On Thu, 18 Sep 2008 10:48:26 -0700 (PDT), zacks@construct ion-imaging.com
      wrote:
      On Sep 18, 9:50 am, "ats@jbex" <al...@allenjon es.NOSPAM.co.PL EASE.uk>
      wrote:
      >I am using the XMLTextWriter to create an xml document. It goes as follows:
      >>
      >writer.WriteSt artDocument
      >>
      >writer.WriteSt artElement
      >writer.WriteEn dElement
      >etc etc etc
      >>
      >writer.WriteEn dDocument
      >>
      >The first line created is <?xml version="1.0" encoding="UTF-8"?>
      >>
      >Between this line and the first element I need to add the following:
      >>
      ><!DOCTYPE paymentService PUBLIC "DTD Name" "URL">
      >>
      >How do I add this line using the XMLTextWriter?
      >>
      >
      As far as I am aware, the XMLTextWriter cannot write XML Comments.
      I found it. It is writer.WriteDoc Type. And for commennts use
      writer.WriteCom ment.
      --
      ats@jbex

      When Johnny comes marching home again
      He's coming by bus or underground
      A woman's eye will shed a tear
      To see his face so beaten in fear
      An' it was just around the corner in the English Civil War

      The Clash - English Civil War

      Comment

      Working...