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
  • 0 Votes
    3 Posts
    2 Views
    L
    Okay, so I did that and now the schema shows up on the schema list, however when it is included, it doesn't give me any options, it just says "The 'http://vestras.net/moonlite/schemas/ximl:Markup' element is not declared." What does this mean? The Markup element is declared.
  • 0 Votes
    1 Posts
    1 Views
    No one has replied
  • VXML

    help question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • XSLT and asp.NET mixture

    xml csharp question asp-net sysadmin
    3
    0 Votes
    3 Posts
    2 Views
    A
    try /pid[@id] I dont know the xml docment .
  • How to create xmpp client using C#?

    csharp sysadmin tutorial question lounge
    2
    0 Votes
    2 Posts
    4 Views
    L
    choose a single forum to ask your question, and stick to it. :| Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum Please use < PRE > tags for code snippets, it preserves indentation, and improves readability.
  • Error in running ASP.NET C# (MySql) site

    csharp asp-net database mysql sysadmin
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • 0 Votes
    1 Posts
    1 Views
    No one has replied
  • 0 Votes
    2 Posts
    2 Views
    S
    Hi, have a look here: http://www.stylusstudio.com/xmldev/200404/post60210.html[^] The answer seems perfectly to suit your needs. Regards Sebastian It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.
  • writing to xml file

    xml help tutorial question announcement
    5
    0 Votes
    5 Posts
    2 Views
    F
    i tried that also but it opens the last node and inserts the node i wanted and closes the last node that was opened. any idea? i would love if you write me the suitable code. thanks a lot
  • How to access xml file simultaneously at runtime

    xml help tutorial
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Using SAX and PHP

    php xml tutorial
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • language localization using XML in VC++ (MFC)

    c++ xml tutorial
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Suppress Xmlns in InnerXML / Rename an XML node in DOM

    xml help question html database
    2
    0 Votes
    2 Posts
    4 Views
    G
    ... I avoided the need to do either by using OuterXML: XmlNode ^TmpNode; XmlNode ^IE315_Node; XmlNode ^IE313_Node; String^ tmpstr; switch (current_message) { case (MessageType::IE315): { if (!namespace_found) try { IE315_Node = doc->SelectSingleNode("//EntrySummaryDeclaration"); } catch (Exception ^e) { MessageString = "Error finding EntrySummaryDeclaration: " + e->Message; MessageBox::Show(MessageString); } else try { IE315_Node = doc->SelectSingleNode("//ie:EntrySummaryDeclaration",nsmgr); } catch (Exception ^e) { MessageString = "Error finding EntrySummaryDeclaration: " + e->Message; MessageBox::Show(MessageString); } tmpstr = IE315_Node->OuterXml->ToString(); tmpstr = tmpstr->Replace("EntrySummaryDeclaration", "EntrySummaryDeclarationAmendment"); tmpstr = tmpstr->Replace("IE315", "IE313"); doc->RemoveChild(IE315_Node); doc->LoadXml(tmpstr); current_message = MessageType::IE313; Convert->Text = "Con&vert to IE315"; ReferenceNumber->Text = ""; ReferenceNumber->Enabled = true; break; } Ger
  • Parsing RSS

    com xml json help question
    2
    0 Votes
    2 Posts
    3 Views
    S
    I suspect that node can be HTML, or HTML-like? In which case, you need to parse that text as HTML so you can manipulate it... It would help if you supplied more context, i.e. some XML which indicates what nodes of the RSS specification you are referring to exactly... Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p CodeProject MVP for 2010 - who'd'a thunk it!
  • XSLT to HTML

    xml html css database help
    2
    0 Votes
    2 Posts
    5 Views
    S
    This does most of what you want...I've put in comments to show the different bits... <?xml version="1.0" encoding="utf-8" ?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" indent="yes"/> <!-- We need a template matching the document root to start the transformation --> <xsl:template match="/"> <html> <head> <title>Bilingual Lexicon ES-EN</title> <link href="dictionary.css" rel="stylesheet" type="text/css" /> </head> <body> <h3>Browse by letter</h3> <table> <!-- Process each translation element, sorted by the initial attribute and then the English term --> <xsl:apply-templates select="//translation"> <xsl:sort select="@initial"/> <xsl:sort select="search"/> </xsl:apply-templates> </table> </body> </html> </xsl:template> <!-- Template to process a translation element --> <xsl:template match="translation"> <!-- If this is the first translation element, or its initial attribute is different to the last one in the list of translation elements, output the initial attribute. --> <xsl:if test="position()=1 or @initial != preceding-sibling::translation[1]/@initial"> <tr><td colspan="2"><h1><xsl:value-of select="@initial"/></h1></td></tr> </xsl:if> <!-- Output a row for each translation --> <tr> <td><xsl:value-of select="search"/></td> <td> <!-- Output the first replace element --> <xsl:value-of select="replace[1]"/> <!-- Output the other replace elements preceded by the separator --> <xsl:for-each select="replace[position()>1]"> ;<xsl:value-of select="."/> </xsl:for-each> </td> </tr> </xsl:template> </xsl:stylesheet> Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p CodeProject MVP for 2010 - who'd'a thunk it!
  • Desperate seeking answer to simple problem

    xml help question database
    8
    0 Votes
    8 Posts
    3 Views
    A
    Thanks for the help, i solved the problem For Each row As GridViewRow In GrdImagesSel.Rows Dim cbSi As CheckBox = row.FindControl("chkShowImage") 'Koppel Itemcode van de row aan productID en If cbSi IsNot Nothing AndAlso cbSi.Checked Then Dim productID As String = Convert.ToString(GrdImagesSel.DataKeys(row.RowIndex).Value) Dim root As XmlNode = xmldoc.DocumentElement Dim nodeList As XmlNodeList = root.SelectNodes("MNINT\_Summary/Itemcode") For Each productNode As XmlNode In nodeList If productNode.FirstChild.InnerText = productID Then Dim ShowImage As XmlElement = xmldoc.CreateElement("ShowImage") productNode.AppendChild(ShowImage) ShowImage.InnerText = "1" End If Next Else Dim productID As String = Convert.ToString(GrdImagesSel.DataKeys(row.RowIndex).Value) Dim root As XmlNode = xmldoc.DocumentElement Dim nodeList As XmlNodeList = root.SelectNodes("MNINT\_Summary/Itemcode") For Each productNode As XmlNode In nodeList If productNode.FirstChild.InnerText = productID Then Dim ShowImage As XmlElement = xmldoc.CreateElement("ShowImage") productNode.AppendChild(ShowImage) ShowImage.InnerText = "0" End If Next End If Next
  • Can anyone give me a hand with this?

    help database xml tutorial question
    7
    0 Votes
    7 Posts
    7 Views
    A
    I need to write code for something other than what you guys use xml for, it's for a 3D modeling program. Apparently I posted my question on the wrong forum. Sorry guys, you have a nice day!
  • How ti create sitemap in xml?

    question xml tutorial
    3
    0 Votes
    3 Posts
    2 Views
    J
    Thanks!
  • 0 Votes
    2 Posts
    2 Views
    B
    hi craig, i was wondering if you've already solved this problem? cause i too have another problem similar to this one but only has something similar with your line: <xsl:for-each select="search[not(.=preceding::search)]"> i understand that you'll get like in your current output this line: <translation initial="A" /> simply, how did you solve yours? (if you have solved it). i would appreciate it if you can post it. please and thanks! modified on Sunday, April 25, 2010 12:33 AM
  • building an XML page

    help csharp tutorial announcement xml
    10
    0 Votes
    10 Posts
    5 Views
    F
    Hi i created a dropdownlist that shows all the ((day- label attribute)). by selecting one of those item, it will bind all that selected node's data in a datagrid. In other words, how can i bind the selected node from the dropdownlist to a datagrid that will bind its attributes?