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
  • XML / CSL Macros

    xml json question
    2
    0 Votes
    2 Posts
    0 Views
    L
    SimonCropper wrote: I am looking for means of manipulating authors I am guessing that means the Text context of a TextNode which is of course a child of an ElementNode. It might be possible to accomplish this using Javascript and an XSLT Processor that supports user functions. I think I remember using one of the Microsoft Processors that supports that, perhaps they all do, I don't know because I would not use that mechanism unless I had no other choice. Fortunately, in this case you have another choice. Using a compiled programming language (C#, C++, whatever), load the file in a DOM, query for the elements of interest, read the current Text, modify the Text (your capitalization), write it back into the element. Finally the last step would be to persist the changed XML back into it's storage location, e.g. Disk File or Database or whatever.
  • Xml special character

    html xml tutorial question
    3
    0 Votes
    3 Posts
    0 Views
    U
    pass each string in the following function, and you will always get the right result: Public Function MakeXMLString(ByVal text As String) As String text = text.Replace("&", "&amp;") text = text.Replace("'", "&apos;") text = text.Replace("""", "&quot;") text = text.Replace("<", "&lt;") text = text.Replace(">", "&gt;") Return text End Function good luck!
  • change attributes whitin XML

    xml database help question announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • SAXModelBuilder vs DOM Parser

    html question css visual-studio com
    5
    0 Votes
    5 Posts
    0 Views
    J
    Thanks, yeah I have no issue with what the author's point is. I understand what the differences between SAX and DOM are. I was going to recreate a DOM parser I had created as a SAX parser but I need the ability to jump around a little bit which is why I was going to use this Java Object Model. But once I started reading about it I was thinking that this may all be for naught because even though I'm using SAX it is stil storing everything in memory and therefore using the same amount of memory as a DOM parser. Thanks for the response
  • Finding an assembly redirection in app.config

    xml tutorial question announcement
    2
    0 Votes
    2 Posts
    0 Views
    M
    Looks as if I was just missing a small step - I think I can answer my own question :) For those interested: An XPath finding only the nodes I wanted is //assemblyIdentity[@name="ClassLibrary1"]/../bindingRedirect[@oldVersion="1.0.0.0"]/.. Nevertheless - if someone else knows a better way I'm always willing to learn. Regards, mav -- Black holes are the places where God divided by 0...
  • Problem in parsing xml to html

    help html xml json question
    2
    0 Votes
    2 Posts
    0 Views
    G
    See: http://www.codeproject.com/script/Forums/View.aspx?fid=3421&msg=3023232[^] "We make a living by what we get, we make a life by what we give." --Winston Churchill
  • Degree symbol ° in xml

    html xml json help question
    2
    0 Votes
    2 Posts
    0 Views
    G
    In order to include the degree symbol in your XML document, it can be represented as &#0176;. "We make a living by what we get, we make a life by what we give." --Winston Churchill
  • Generate-id

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Php parameter to xslt

    xml question php data-structures
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    4 Posts
    0 Views
    G
    Post some code to show what you are doing. "We make a living by what we get, we make a life by what we give." --Winston Churchill
  • how do i read the specific tag ?

    question xml
    4
    0 Votes
    4 Posts
    0 Views
    G
    Unfortunately, our poster is using XmlTextReader. You don't use XPath with that. "We make a living by what we get, we make a life by what we give." --Winston Churchill
  • Improving XML read/load performance

    database xml csharp sql-server sysadmin
    3
    0 Votes
    3 Posts
    0 Views
    E
    Thanks Mike. It'll be helpful.
  • XSL Sum() [modified]

    help java css xml question
    3
    0 Votes
    3 Posts
    0 Views
    L
    Using dot .& lt;30 seems to be working too and less confusing instead of number(text()). Thanks for your reply.
  • C++, Java, DOM support

    json c++ java html help
    2
    0 Votes
    2 Posts
    0 Views
    L
    AFAIK the two Xerces (C++/Java) implementations are completely separate. It sounds like you have read something that says they are one implementation, could you supply a link to that? gotchagotcha wrote: What I'd like too is to have a API to access the same DOM implementation both in C++ and JAVA Why? The whole point is that the DOM is the standard and therefore the API's are mostly identical. Designing your applications with a DAL probably provides a much larger benefit than sharing a DOM implementation. Also to use native code from Java requires the use of JNI so you can't directly utilize a C++ anything by writing pure Java code. Anyway if you are bent on doing this I suppose you could provide the JNI wrappers for the C++ Xerces DOM. It seems pointless to me but whatever.
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Group XML by category

    4
    0 Votes
    4 Posts
    0 Views
    L
    The technique for this is known as the Muenchian Method (or Muenchian grouping[^]) and it involves the use of xsl:key in a rather clever way. I just love Koalas - they go great with Bacon.
  • special character problem in href tag using xslt [modified]

    xml help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    G
    IMHO, I would avoid using "special" characters and white space in a URL since it always gets URL-encoded. In your case, the single quote will be change to %28. Besides, since XSLT is really XML, you can use &quot; instead of &#39;. Please note that you can place characters such as a single quote in CDATA sections! "We make a living by what we get, we make a life by what we give." --Winston Churchill
  • XML and DTD Doubt?

    question xml help
    2
    0 Votes
    2 Posts
    0 Views
    G
    Do you know what a DTD is, and why do you need to use one? If you have the answers to these questions, you should know what to do. "We make a living by what we get, we make a life by what we give." --Winston Churchill
  • gmn?

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • XML NODE

    2
    0 Votes
    2 Posts
    0 Views
    L
    kibromg wrote: What i want is When i click on Home the Service Link shouldnt be hidden. I don't know if anyone will understand your post, I know I don't. XML is text so when you click on it nothing is going to happen. My guess is you left some stuff out of your post under the mistaken notion that we already know what you are thinking and doing, we don't, that's not really how internet forums work. Or perhaps you don't know anything about XML yourself. If that is the case try some of the tutorials at www.w3schools.com