Skip to content

XML / XSL

Discussions on XML and related technologies

This category can be followed from the open social web via the handle xml-xsl@forum.codeproject.com

2.6k Topics 6.8k Posts
  • Is there an "include" directive in XML?

    algorithms xml help question
    3
    0 Votes
    3 Posts
    2 Views
    Richard DeemingR
    Have a look at the ImportNode and AppendChild methods. Something like this should work: XmlDataDocument doc1 = LoadDoc1(); XmlDataDocument doc2 = LoadDoc2(); foreach(XmlNode source in doc2.DocumentElement.ChildNodes) doc1.DocumentElement.AppendChild(doc1.ImportNode(source, true)); "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • XML file in VC++

    c++ data-structures xml help question
    4
    0 Votes
    4 Posts
    2 Views
    M
    Well do you just need to read in a string and then save it as a CData section to a single element? I would expect you wanted to organize the data in some hierarchical scheme. Have you just browsed the XML code here in CP and looked for examples? Kristen Wegner's is good work (along with many others) http://www.codeproject.com/soap/pugxml.asp[^] There are several "SET" methods to add elements, attributes and their values. ""
  • Defining Schema

    xml database tutorial
    2
    0 Votes
    2 Posts
    2 Views
    M
    I think you would be better off having two elements (LoadConfigDef, LoadConfigUser) with the parent having a selection of which one. ""
  • Search engine using Javascript

    javascript html xml question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • appending to an existing XML file

    question csharp xml
    2
    0 Votes
    2 Posts
    2 Views
    P
    XmlDocument doccy = new Document(); doccy.Load(filename); XmlElement root = doccy.SelectSingleNode("rootnode"); XmlElement newRecord = doccy.CreateElement("record"); root.AppendChild(newRecord); doccy.Save(filename); obviously you will need to implement a locking mechanism. "When the only tool you have is a hammer, a sore thumb you will have."
  • Roger L. Costello - Tutorials Updated

    html com
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • how to render XML for netscape????

    javascript xml help tutorial question
    6
    0 Votes
    6 Posts
    3 Views
    P
    you have to do this using server-side code. client side code is not a good idea as you will face the problems that you have now. you need to write this in code that executes on the webserver, so either asp or asp.net depending on which one you know. "When the only tool you have is a hammer, a sore thumb you will have."
  • msxml 2.0 in IE

    c++ xml question announcement
    2
    0 Votes
    2 Posts
    2 Views
    P
    Version 3.0 of MSXML is shipped with IE5+, IE use what you tell it to use, while default is MSXML3 (not 4), for example if you create an instance of MSXML in the script with string "MSXML2.DOMDocument", version 3 will be used (assuming it is installed), but if you use "MSXML2.DOMDocument.4", you'll get a version 4. Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
  • Problem while using MSXML to get HTTP response

    help com sysadmin question workspace
    2
    0 Votes
    2 Posts
    2 Views
    A
    Hi, I find out the mistake:) The method is pIXMLHTTPRequest->open("POST",(_bstr_t)"http://www.yahoo.com"); shoud be "GET" instead of "POST".
  • strong type in XML

    csharp question com xml tutorial
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • can XSL do this ?

    xml help question
    2
    0 Votes
    2 Posts
    2 Views
    T
    Hi, here's an example of this I knocked together for a friend a while ago.. *********XML*********---------------8<--------------- *********XSL********* body, td { font-family: arial; font-size: 12px } Matching company:
  • Tree Navigation

    xml html wpf data-structures regex
    2
    0 Votes
    2 Posts
    2 Views
    M
    Is this what you want? What processor are you using? I had to change the xmlns to something newer to run this through MSXML 4. I also had to correct the case of the match and select values to your xml file. **************** XML FILE ***************** *************** XSL FILE ******************** AOM MODEL top ************** out put ****************** AOM MODEL top CRange CKeyboard COven CDigitalInput CDigitalOutput CSettings ""
  • Display multipal XML files using single XXLT

    xml tutorial question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Storing data in "ref" element

    xml question csharp database help
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • SOAP Stars

    wcf c++ com xml career
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • xsl:import and xsl:include

    com xml question
    5
    0 Votes
    5 Posts
    2 Views
    P
    Ah, thanx :) Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
  • 0 Votes
    1 Posts
    1 Views
    No one has replied
  • 0 Votes
    2 Posts
    3 Views
    M
    The node "modem" has several child nodes. One of which is the attribute node called "ID" as well as child element nodes called Number and Interval. You also has child text nodes that contain your formating text. Given that pNode is the pointer to your "modem" node. // Get Attributes IXMLDOMNamedNodeMap *AtMap; hr = pNode->get_attributes(&AtMap); long atpos,atlen; hr = AtMap->get_length(&atlen); IXMLDOMNode *item; for(atpos=0;atposget_item(atpos,&item); hr = item->get_baseName(&txt); name = txt; hr = item->get_text(&txt); data = txt; } The above code will step through all of the attribute nodes and give you their base name and text value. "I will find a new sig someday."
  • Walking Through XML in JavaScript Visiting All ChildNodes

    javascript xml help
    2
    0 Votes
    2 Posts
    3 Views
    P
    What do u need? Do u need help with recursion? Do u need the API to the MSXML DOM? The latter can be found at msdn.microsoft.com/xml along with many samples. "No matter where you go, there your are..." - Buckaoo Banzi -pete
  • problem creating XML programatically

    help data-structures xml question announcement
    2
    0 Votes
    2 Posts
    2 Views
    P
    and xml document can have only ONE root element, when you try and add the second transaction you are creating an invalid xml document, so you need to wrap it in a "" element. "When the only tool you have is a hammer, a sore thumb you will have."