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
  • Word Formatting

    xml learning
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Image in XML

    question xml
    2
    0 Votes
    2 Posts
    0 Views
    D
    Well if you would save the url of the images in an xml file ... <?xml version="1.0" encoding="utf-8" ?> <root> <img src="Myjpeg1.jpg" /> <img src="Myjpeg2.jpg" /> </root> You could then add a repeater to aspx page and set it's data source to the xml file and then make the itemtemplate like this ... <ItemTemplate> <img src='<%# DataBinder.Eval(Container.DataItem, "src") %>'/> </ItemTemplate>
  • 0 Votes
    5 Posts
    0 Views
    S
    Ummm - you have lots of issues with the DTD as well. You've got lots of repeated elements (itemName and itemNumber, for example). The element names in the definition of the content of the detail element don't match the element naems defined in the DTD (postCode vs postcode, for example). And remember, the XML is NOT fine if it doesn't validate against the DTD... Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p CodeProject MVP for 2010 - who'd'a thunk it!
  • XML File is not updated in IE browser

    help question com xml announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    2 Posts
    0 Views
    F
    I've just found by myself, the object is an instance of the class XslCompiledTransform whicn enables all the process. regards
  • Compiling an XML database with an application

    c++ database xml help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    S
    You could try zipping the folder with a password, then use the zip file as a file-system from within your program? That's what (for example) Microsoft do with Office 2007 files - a .docx file is just an XML file and folder structure in a zip file... Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p CodeProject MVP for 2010 - who'd'a thunk it!
  • How can i read or get an XML from another host?

    question php com sysadmin xml
    2
    0 Votes
    2 Posts
    1 Views
    D
    This is really more of a Web Development question but the best answer is to use PHP or ASP to get the file on your server then make it accessable to the client.This applies to any file from a different domain not just xml.
  • XSLT help

    xml help question
    3
    0 Votes
    3 Posts
    5 Views
    A
    thats what i was searching for.thx
  • Serializing a complex object to XML [modified]

    database xml help question csharp
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • build one xml element with few childs

    tutorial question xml help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • new to xml..please help..

    xml help question
    2
    0 Votes
    2 Posts
    0 Views
    S
    Hi, you have to change the root of your schema file to <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://mynamespace/mydetails"> This will define the xs prefix and the namespace you want to create. Within your xml file you have to put a reference to the schema by changing the root to this: <details xmlns="http://mynamespace/mydetails"> Here the namespace is imported without a prefix. But pay attention if you need to validate the xml (if it is valid according to the schema). The reference will be resolved by a DefaultResolver. This one will not find the schema file until you give it a hint. Simple code to validate an XML file against a schema file (XSD)[^] Regards Sebastian It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.
  • XQUERY fn:replace() inserting spaces?

    question announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to convert portlet into gadget

    tutorial question
    2
    0 Votes
    2 Posts
    3 Views
    N
    Do not spam the forums :mad: This has nothing to do with XML or XSL I know the language. I've read a book. - _Madmatt
  • Help Finding Content

    question csharp com xml help
    3
    0 Votes
    3 Posts
    5 Views
    J
    Thanks, but I have solved it by using LINQ
  • VS2005 doesn't like my XML Schema

    visual-studio xml help tutorial csharp
    3
    0 Votes
    3 Posts
    0 Views
    S
    You need a simpleContent[^] element as a child of the complexType. Then extend the simple type with attributes - like this: <xsd:element name="Well_Volumes"> xsd:complexType <xsd:sequence maxOccurs="unbounded"> <xsd:element name="Well"> <xsd:complexType> <xsd:simpleContent> <xsd:extension base="xsd:decimal"> <xsd:attribute name="channel" type="xsd:string"/> <xsd:attribute name="dispense\_order" type="xsd:string"/> <xsd:attribute name="plate\_column" type="xsd:string"/> <xsd:attribute name="plate\_row" type="xsd:string"/> </xsd:extension> </xsd:simpleContent> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p CodeProject MVP for 2010 - who'd'a thunk it!
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • xml code editor

    xml
    2
    0 Votes
    2 Posts
    1 Views
    C
    1. Read the section "How to get an answer to your question" above, especially the second point. 2. Everyone loves it to answer questions ASAP or URGENT. :thumbsdown: Greetings Covean
  • Multiple children in Node question

    xml question announcement
    7
    0 Votes
    7 Posts
    8 Views
    S
    Yeah - I'd was just looking at it and realising that you needed some way of determining what indicated unique files...which you've done... Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p CodeProject MVP for 2010 - who'd'a thunk it!
  • How to de-batch very large XMLDocument into bit size chunks

    xml tutorial
    3
    0 Votes
    3 Posts
    2 Views
    O
    There is a sample of the child record. And there are 56,000 of them in the xml document. I can realy give you the full details of what the complicated process is doing but part of it is using the Muenchian Method grouping on 'cost_centre' and 'expense_code'. The app is runningon a dev box 2.50GH, 2GB. It has 1/2GB free when app is not running <Transaction> <Entry> <payroll_id>payroll_id_0</payroll_id> <payroll_nm>payroll_nm_0</payroll_nm> <payRunDate>payRunDate_0</payRunDate> <payRunID>payRunID_0</payRunID> <empno>10</empno> <surname>surname_0</surname> <forename>forename_0</forename> <pos_ref>pos_ref_0</pos_ref> <pos_name>pos_name_0</pos_name> <element_id>element_id_0</element_id> <element_name>element_name_0</element_name> <cost_centre>c11</cost_centre> <expense_code>e11</expense_code> <debit_credit>debit_credit_0</debit_credit> <amount>10</amount> <signed_amount>10</signed_amount> </Entry> <Entry> .... </Entry> </Transaction>
  • Unclosed tr tag

    regex xml help question
    3
    0 Votes
    3 Posts
    0 Views
    S
    The previous answer told you why the error occurred - here's a solution: <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">Silver</xsl:attribute> </xsl:if> ... </tr> Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p CodeProject MVP for 2010 - who'd'a thunk it!