XElement Sorting
Hi there, I have a xml file like that: <Users> <User> <Adress Name="bbbb"/> <Adress Name="aaaa" /> </User> </Users> I want to sort User element's nodes asc. How can i order Adress elements? Thank you for your helps. ...
Hi there, I have a xml file like that: <Users> <User> <Adress Name="bbbb"/> <Adress Name="aaaa" /> </User> </Users> I want to sort User element's nodes asc. How can i order Adress elements? Thank you for your helps. ...
I have a framgment of XML (just a few nodes, not a complete XML document) in a string that I need to get some values out of with Linq to XML. I'm finding it quite difficult to get this string into an XML object that I can work with though. Is there a way for me to do this? This is a sample of the XML: <Batch type="My Funds" pageNumber...
I was thinking about a way to allow multiple users to get CRUD access to an XML document in an asp.net app. The operations would obviously have to be made under the assumption of a multithreaded environment. For perf reasons, would it make sense to cache the document, and use a mutex on that cached version? When would changes be flush...
I'm currently designing a system that requires an admin to log in using a password. For certain reasons, it is difficult to set this password during installation, but it can be changed later. My idea is this: If I leave the default password empty, it is so horridly insecure that every admin is going to fix this as soon as possible. If I...
HI All, I have a PDF file with a xml attached, i need to parse the xml file. Does anyone knows how i do that? I´m using C#. Thanks in advance. ...
In the below XSL every time the xsl:when gets satisfied I want to append as many <a> and </a> tags. But the data that needs to be populated inside the tags should be only once. I have shown the expected output at the end. <xsl:param name="insert-file" as="document-node()" /> <xsl:template match="*"> <xsl:variable name="input">My text<...
We have an xml word doc with image on title page that downloads correctly via ftp but the image is always missing if we try to download it via a link in an html page. We're using Firefox if that makes a difference. But we also tried it using Opera, with the same results. Here's the link we're using: $fileDest = './mydoc.xml'; <a type="m...
These days a number of commercial and open source tools have been developed for this purpose. However(unfortunately), non of them meet my requirement for specific problem I am dealing with. Currently, I am working on a project that exposes a different classes and functions to user as scripting interface. the user can use the objects from...
I'm parsing this line: <type>branch</type> with this code in didEndElement if ([elementName isEqualToString:@"type"]) { [currentBranchDictionary setValue:currentText forKey:currentElementName]; } When I test the value in the type key, it does not contain branch but instead it contains branch\n. Here is the test I'm ...
C# VB.NET 2.0 I have XML string object being sent to me. I have the location of the schemas (5 of them) that I need to validate this XML against. Most of the examples I see are .net 3.5, but not many on 2.0. The XML String does NOT Declare what schemas to use, it only has the namespaces on a good handful of elements. Thanks. ...
Using LINQ to XML, how can I join two sets of data based on ordinal position? <document> <set1> <value>A</value> <value>B</value> <value>C</value> </set1> <set2> <value>1</value> <value>2</value> <value>3</value> </set2> </document> Based on the above fragment, I would li...
I have an XML which uses the XPDL standard (which has an XML schema). What I'm trying to do now is to convert its content to RDF format (serialized in XML), in terms of a certain ontology. Clearly, there needs to be some sort of mapping here. I would like to do this using PHP. The thing is, I have no idea how to do this best. I know how ...
When serializing a C# class using XmlSerializer, the attributes/elements representing the properties of the class will have the same names as they do in the source code. I know you can override this by doing like so: [XmlAttribute("num")] public int NumberOfThingsThatAbcXyz { get; set; } I'd like the generated XML for my classes to b...
I'm trying to query an xml file using the following xslt: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:bpmn="http://dkm.fbk.eu/...
I want to transform (with jquery.xslt.js) xml to be preserving tags in text nodes. Xml looks like: <example> <text> Some text with <br /> and <img src="source" /> then text .... </text> </example> I want to have: <div class="example"> <p>Some text with <br /> and <img src="source" /> then text ....</p> </div> If I...
hi. I'm trying to transform some uml diagrams (of singleton , AbstractFactory ...) to Z specification , first i transformed my uml diagram to an xml file using starUML then i used an xsl program and saxon to transform my xml file to .tex( for Z ) , but it didnt work . if someone has an idea about how the xsl program should be written ...
I am having trouble with a template that has to check 3 different nodes and if they are not empty, print the data I am using <xsl:if test="string-length(node) != 0"> for each node then doing the output but it is not printing anything. It is like the test returns zero. I have selected the parent node of each node I want to check the le...
I would like to create a list of Integers in the /res folder of an android project. However, I want those integers to point resources in /res/raw. So for example, I would like something like this: <?xml version="1.0" encoding="utf-8"?> <resources> <integer-array name="built_in_sounds"> <item>@raw/sound</item> ...
I have a rather complicated xslt sheet transforming one xml format to another using templates. However, in the resulting xml, I need to have all the empty elements excluded. How is that done? This is how the base xslt looks like: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:far="http://www.itel...
phpQuery is a really nice tool which has helped me tremendously in the past parse well-formed XHTML and XML documents, but I have recently run into a problem trying to select elements that have colons in their tagname, such as the following: <isc:thumb><![CDATA[http://example.com/foo_thumb.jpg]]></isc:thumb> I've tried to use...