Click here to Skip to main content
15,921,606 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionWho knows PHP ? Pin
Member 15922365-Nov-02 6:57
Member 15922365-Nov-02 6:57 
AnswerRe: Who knows PHP ? Pin
Philip Fitzsimons5-Nov-02 23:31
Philip Fitzsimons5-Nov-02 23:31 
GeneralRe: Who knows PHP ? Pin
Christian Graus6-Nov-02 19:12
protectorChristian Graus6-Nov-02 19:12 
GeneralRe: Who knows PHP ? Pin
Paul Watson7-Nov-02 2:20
sitebuilderPaul Watson7-Nov-02 2:20 
GeneralRe: Who knows PHP ? Pin
Christian Graus7-Nov-02 10:15
protectorChristian Graus7-Nov-02 10:15 
GeneralRe: Who knows PHP ? Pin
nrk11-Nov-02 7:12
nrk11-Nov-02 7:12 
GeneralRe: Who knows PHP ? Pin
Paul Watson11-Nov-02 21:13
sitebuilderPaul Watson11-Nov-02 21:13 
GeneralAssign DTD to XML Document Pin
Bash3-Nov-02 2:05
Bash3-Nov-02 2:05 
Hi Gurus!

I'm a XML beginner. I try to save my program settings in XML file using Microsoft Visual C++ 6.0. Here is the sample from my code:

--------------------------------------------------------------
IXMLDOMDocumentPtr XmlDocPtr;
IXMLDOMNodePtr pNode;
IXMLDOMElementPtr XmlRootPtr;

b=XmlDocPtr->loadXML(_bstr_t("<settings>"));
if (!b) return;

XmlDocPtr->get_documentElement(&XmlRootPtr);

if (XmlRootPtr)
{
VARIANT vtTemp2;
vtTemp2.vt=VT_I2;
vtTemp2.iVal = NODE_ELEMENT;
pNode = XmlDocPtr->createNode(vtTemp2, "Program", "");
pNode->put_dataType(L"NODE_TEXT");
pNode->put_text(L"MYCOOLER");
XmlRootPtr->appendChild(pNode);

pNode = XmlDocPtr->createNode(vtTemp2, "Distributor", "");
pNode->put_dataType(L"NODE_TEXT");
pNode->put_text(L"IBM Corp.");
XmlRootPtr->appendChild(pNode);

pNode = XmlDocPtr->createNode(vtTemp2, "Version", "");
pNode->put_dataType(L"NODE_TEXT");
pNode->put_text(L"6.0");
XmlRootPtr->appendChild(pNode);
};

variant_t vDest(L"d:\\settings.xml");
XmlDocPtr->save(vDest);
--------------------------------------------------------------


File d:\system.dtd contains:

--------------------------------------------------------------





--------------------------------------------------------------


But resulted file "settings.xml" is not formatted according system.dtd specification. What's wrong? Help me!



Yours sincerely,
Alex Bash
GeneralRe: Assign DTD to XML Document Pin
Stephane Rodriguez.3-Nov-02 2:19
Stephane Rodriguez.3-Nov-02 2:19 
GeneralRe: Assign DTD to XML Document Pin
Bash3-Nov-02 3:37
Bash3-Nov-02 3:37 
GeneralRe: Assign DTD to XML Document Pin
Stephane Rodriguez.3-Nov-02 4:09
Stephane Rodriguez.3-Nov-02 4:09 
GeneralRe: Assign DTD to XML Document Pin
Bash3-Nov-02 18:52
Bash3-Nov-02 18:52 
General(XML4C) DOMParser constructor crash Pin
Ravi Bhavnani1-Nov-02 12:10
professionalRavi Bhavnani1-Nov-02 12:10 
GeneralRe: (XML4C) DOMParser constructor crash Pin
Michael A. Barnhart2-Nov-02 2:11
Michael A. Barnhart2-Nov-02 2:11 
GeneralRe: (XML4C) DOMParser constructor crash Pin
Ravi Bhavnani3-Nov-02 9:13
professionalRavi Bhavnani3-Nov-02 9:13 
GeneralRe: (XML4C) DOMParser constructor crash Pin
Michael A. Barnhart3-Nov-02 9:34
Michael A. Barnhart3-Nov-02 9:34 
GeneralRe: (XML4C) DOMParser constructor crash Pin
Ravi Bhavnani3-Nov-02 9:42
professionalRavi Bhavnani3-Nov-02 9:42 
GeneralXML Database on Client w/C# Pin
GregGacura31-Oct-02 12:37
sussGregGacura31-Oct-02 12:37 
Generalcalling all XML/XSL XPath gurus Pin
Marc Clifton31-Oct-02 9:37
mvaMarc Clifton31-Oct-02 9:37 
GeneralRe: calling all XML/XSL XPath gurus Pin
Christian Graus31-Oct-02 10:22
protectorChristian Graus31-Oct-02 10:22 
GeneralRe: calling all XML/XSL XPath gurus Pin
Marc Clifton31-Oct-02 10:26
mvaMarc Clifton31-Oct-02 10:26 
GeneralRe: calling all XML/XSL XPath gurus Pin
Christian Graus31-Oct-02 10:49
protectorChristian Graus31-Oct-02 10:49 
GeneralRe: calling all XML/XSL XPath gurus Pin
Michael Dunn31-Oct-02 13:58
sitebuilderMichael Dunn31-Oct-02 13:58 
GeneralForEx Data Pin
shane3931-Oct-02 8:27
shane3931-Oct-02 8:27 
GeneralRe: ForEx Data Pin
Ravi Bhavnani2-Nov-02 4:42
professionalRavi Bhavnani2-Nov-02 4:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.