LINQ to Xml not equal to operator
I am using LINQ to XML. I want to use an equivalent of sql's <> operator in the where clause below.... var myBooks = from book in xDoc.Descendants("BOOKOB") where book.Element("AUTHOR").Value Please help! ...
I am using LINQ to XML. I want to use an equivalent of sql's <> operator in the where clause below.... var myBooks = from book in xDoc.Descendants("BOOKOB") where book.Element("AUTHOR").Value Please help! ...
Hi, My question is: using XSLT, how to count the total number of QUOTE tag (please see the sample code below) The result need to be exported in HTLM, it will display like this: There are total 6 quotes <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="text.xsl" ?> <quotes> <quote>Quote 1 </quote> ...
My xsd file contains: <xs:sequence> <xs:element name="Book"> <xs:complexType> <xs:attribute name="author" type="xs:string" /> <xs:attribute name="title" type="xs:string" /> </xs:complexType> ...
My Qt application should be able to create/open/save a single "Project" at once. What is the painless way to store project's settings in a file? Should it be XML or something less horrible? Of course data to be stored in a file is a subject to change over time. What I need is something like QSettings but bounded to a project in my appl...
for example I have the XML code like this: <quotes> <quote> <character> <name>LA FEU</name> </character> </quote> <quote> <character> <name>LA FEU</name> </character> </quote> <quote> <character> <name>LA FEU</name> </character> </quote> </quotes> My XSLT code to transform this ...
I have a xml configuration file for an application and i am wondering which is the best way to keep documentation for it. IE Possible tags, values, etc Is there a tool, or schema standard or practice that i should follow? ...
Duplicate of HOw to make the text repeat only once every for-each? I have problem with using XPATH to point to some element in XML. Here is my XML code: <character> <name>some name </some name> </character> </quote> <quote> .... </quote> </quotes> and here My XSLT code: <xsl:for-eac...
Hi: Our application is written in VC++ and we are using MSXML for parsing. Now we want to pass MSXML document object from our application to a java application for processing. How can I achieve this? Does java (swing) support MSXML or MSXML objects? We are using DOM parser. Any help appreciated, Thanks, KK ...
I need to transform a lot of XML files (Fedora export) into a different kind of XML. Trying to do it with XSL stylesheets and checking with the msxsl transformer. Supposedly I have xml file like this (assuming there are actually other nodes inside AAA, OBJ, amd all other nodes), Source.XML: <DOC> <AAA> <STUFF>example</STUFF> <O...
I need to change some of the element names in the original XML. I am trying to do this with XSLT, but can't get it to work. Here is a sample of XML: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="test.xsl" type="text/xsl"?> <html> <body> <section>Jabber</section> <itemtitle>JabberJabber</itemtitle...
This isn't a big deal for me, but is there an easy way to get DataContractSerializer to spit out formatted XML rather then one long string? I don't want to change the tags or content in anyway just have it add line breaks and tabs to make the XML more readable? <tagA> <tagB>This is</tagB> <tagC>Much</tagC> <tagD> <tagE...
In RSS, for example if I wanna add a link for the channel: Part of the RSS code: <link> <a href="http://www.nytimes.com/2009/04/10/technology/internet/10google.html?ref=technology"/> </link> And now here is the XSL code: <span> <xsl:value-of select="channel/link"/></span> The problem here is that when I preview the code, the l...
This question are part of a quiz. I've finished already but some questions were answered incorrectly. However, the teacher don't upload the solution for those questions. Would you please help me for the solution of such questions? I need to know exactly the answer in order to start revise for the final exam This question related to DTD...
What's the difference between XSLT and XSL-FO ? Every resource I've read deal with them as if they were 1, or at least very closely tied.. Thanks in advance ...
I feel kinda stupid to even ask that question, But i was sitting like an hour trying to figure out how to solve the problem. I am currently making a project that uses ASP.NET and XML, for my project i created new web site from Visual Studio, and trying to keep my XML files in App_Data. However when i trying to use code: var topic = fro...
Hi all.. Been wondering, just as we use the -decleration to bind XML to a DTD, how do we do it with XSD? MSDN sample: <?xml version="1.0"?> <Product ProductID="123" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Product.xsd"> <ProductName>Rugby jersey</ProductName> </Product> is it ...
What are the principles and patterns that go into writing effective XSLT? When I say "effective" I mean that it is Well-structured and readable Simple, concise Efficient (i.e. has good performance) In short, I'm looking for the best practices for XSLT. I've already seen the question regarding efficiency, but efficient code loses it...
Is there a way that content can be pulled from an XML file into a DIV on click, without using IDs, and with multiple DIVs involved? For example, in the code below, clicking the first link would make content from an XML file appear only in the DIV below the link, and without manually assigning any IDs to the link or to the DIV. <a class...
I've got a question about loading attribute in XPATH. I write short XML code to test: <?xml version="1.0" encoding="iso-8859-1"?> <?xml-stylesheet type="text/xsl" href="testDate.xsl"?> <element attribute="1/1/2100"> Hung </element> My XSL code: <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="ht...
Hello dear Stackoverflow community I'm currently working on a client-server application and I'd like to use XML for the protocol. Now, I'm rather unsure about declaring the XML namespaces and creating XML schemas. Needless to say that server and client send different things, i.e. the client sends requests and the server responds to them...