I am not accustomed to creating xml files programmaticall y. The big picture
is this: This will be in VB/VS 2005/ winforms. I have a DTD, a sample XML,
and an outside data source I will use to populate the XML. In general I
think I know how to create elements and attributes and I'm sure I can hack
something together but I'm wondering if I'm missing (or forgetting) a better
way (other than a long line of hard-coded CreateElement commands).
Suggestions please.
-----
A related problem: the XML header, for lack of a better term. If we assume
creation of an XmlDocument object from scratch, how do I add the header
elements? I cannot find any discussion of this. (Feel free to correct my
terminology.)
This is what I'm referring to -
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE SOME TEXT "DTDName.dt d">
<?xml-stylesheet href="SampleXml .xslt" type="text/xsl" ?>
is this: This will be in VB/VS 2005/ winforms. I have a DTD, a sample XML,
and an outside data source I will use to populate the XML. In general I
think I know how to create elements and attributes and I'm sure I can hack
something together but I'm wondering if I'm missing (or forgetting) a better
way (other than a long line of hard-coded CreateElement commands).
Suggestions please.
-----
A related problem: the XML header, for lack of a better term. If we assume
creation of an XmlDocument object from scratch, how do I add the header
elements? I cannot find any discussion of this. (Feel free to correct my
terminology.)
This is what I'm referring to -
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE SOME TEXT "DTDName.dt d">
<?xml-stylesheet href="SampleXml .xslt" type="text/xsl" ?>
Comment