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
  • How to store XML content into C/C++ structure

    c++ xml help tutorial question
    4
    0 Votes
    4 Posts
    2 Views
    P
    sorry i already gave u this answer "No matter where you go, there your are..." - Buckaoo Banzi -pete
  • Am I creating an XML document correctly?

    csharp xml question
    2
    0 Votes
    2 Posts
    3 Views
    P
    yep thats pretty much the best way to do it. the reason you need to create and instance of folder (CreateFolder) for each item is that AppendChild is appending a reference to the folder, rather than copying it. the way you could speed/simply life is to create a template node and use CloneNode: XmlElement templateFolder = doc.CreateElement("folder"); XmlElement folder; // Add first node folder = templateFolder.CloneNode(); folder.SetAttribute("name", "folder 1"); folder.InnerText = "1st Node"; root.AppendChild(folder); // Add second node folder = templateFolder.CloneNode(); folder.SetAttribute("name", "folder 2"); folder.InnerText = "2nd Node"; root.AppendChild(folder); hope this helps "When the only tool you have is a hammer, a sore thumb you will have."
  • Different between XSL and XSLT

    xml question
    2
    0 Votes
    2 Posts
    3 Views
    P
    XSL is the group name for XSLT and XSLFO really its XSL-T and XSL-FO T was the transformation part - translating and xml document into another document. FO was the formatting objects part - defines the presentation of an xml document for page layout. however since XSL-FO took so long to arrive every tends to use XSL to mean XSLT. "When the only tool you have is a hammer, a sore thumb you will have."
  • Is this thing on?

    question
    4
    0 Votes
    4 Posts
    2 Views
    N
    I read it! (better late than never ;P ) - Nitron "Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
  • XPath question

    xml question database algorithms sales
    5
    0 Votes
    5 Posts
    2 Views
    N
    I didn't know you were so into XML. Maybe another Soda Springs venture may be in order... :suss: - Nitron "Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
  • 0 Votes
    2 Posts
    3 Views
    N
    I would store your data within a class using std::vector to dynamically allocate your "branches" within the program. Then you can create a class using iostreams to write the data to a file in XML format. Then use something like PugXML (somewhere here on CP, I'm too lazy to look) to get the data back. - Nitron "Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
  • 0 Votes
    2 Posts
    3 Views
    Richard DeemingR
    You need to pass an XmlWriter to the Save method: void SaveXml(XmlDocument doc, Stream s, Encoding encoding) { XmlTextWriter xtw = new XmlTextWriter(s, encoding); xtw.Formatting = Formatting.Indented; xtw.Indentation = 1; xtw.IndentChar = '\t'; doc.Save(xtw); } "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • XML using C/C++

    question c++ xml performance help
    3
    0 Votes
    3 Posts
    2 Views
    L
    Hi Palbano, thank you very much for the reply, I understood that the DOM is already a tree struture, what I'd like to do is to transfer these data into another structure written in C/C++, which unfortunately I'm very terrible at. Would it be possible if you can show me how this is done by providing an example skeleton code. Much appreciated!
  • XML Docs/Comments

    csharp css visual-studio data-structures xml
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Another XPath Question

    question xml
    4
    0 Votes
    4 Posts
    2 Views
    M
    Christian Graus wrote: I can't remember, is it 0 or 1 based, the indexing ? 1 based --Mike-- The Internet is a place where absolutely nothing happens.   -- Strong Bad 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm
  • XML schema

    xml database question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Free XML Seminars

    com xml question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Test my XML, please I am bugged!!

    xml com question
    2
    0 Votes
    2 Posts
    3 Views
    J
    Nevermind, sorry, thanks Wrong path in.xsl deleted "TEAMS/" Later, JoeSox www.joeswammi.com Load my Sig here.....
  • XML and search engines

    xml database tutorial question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • XSL Transform error/question

    database xml question beta-testing help
    2
    0 Votes
    2 Posts
    3 Views
    R
    Ok, that didn't come out right. I've changed the brackets to <- and -> so the code would show. Sorry about that. <-xsl:for-each select="MyDataset/Table"-> <-xsl:text disable-output-escaping = "yes"-> <-z:row LastName="<-/xsl:text-> <-xsl:value-of select="LastName"/-> <-xsl:text->" OrderTotal="<-/xsl:text-> <-xsl:value-of select="OrderTotal"/-> <-xsl:text disable-output-escaping = "yes"->"/><-/xsl:text-> <-/xsl:for-each->
  • WSDL in VS.NET

    wcf xml csharp database visual-studio
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • XML Generic Form generator/handler

    xml database help question com
    3
    0 Votes
    3 Posts
    4 Views
    A
    Hi Bernd Thanks for this but the problem here is that XForms is not yet a standard and I need to get something implemented fairly soon.
  • Merging DOMs

    xml question
    3
    0 Votes
    3 Posts
    3 Views
    J
    Right. I had found that one. I was hoping somebody would point out the magical-yet-hidden "merge" method on the IXMLDOMNode interface. :) I guess I'm going to have to do it by hand. J May the bear never have cause to eat you.
  • XForms, any thoughts?

    asp-net question discussion learning
    5
    0 Votes
    5 Posts
    3 Views
    B
    Try google. There are a couple of implementations, including IE plug-ins. I haven't tried any yet. In howfar any of these implementations allow for XForm-driven standard Windows dialogs (as opposed to browser-based forms) remains to be seen. I am interested in that, too. What makes XForms superior to approaches like XUL is that no or little scripting is required. XUL, appart from being tied to Gecko, still requires JavaScript for event handling and inter-control dependencies. Having just said that; W3C specifications are a dull reading and I have another ~200 pages to go on the XForms 1.0 spec. Bernd
  • XSL help !!

    xml help
    2
    0 Votes
    2 Posts
    4 Views
    W
    Heya, either change the XSL to: ... ... or, since you seems to make a copy of the stuff use the xsl:copy-of element. Cheers /WW