xml

XSLT counting "identical" elements based on a subset of descendants

I'm transforming XML to HTML. In part of the XML, I need to count elements that seem "identical" when specific descendants are compared, while other descendants and any attributes must be ignored. Here's a simplified example of my XML. The real thing is much more complicated; I've just removed elements that aren't relevant to the counti...

How to convert HTML to RTF in Perl?

I want a way to convert some basic html tags into RTF (like I, B, BR) Is there any simpler way to do that without paying for anything? Developing something from scratch is an option too. ...

Is there a standard way to store arbitary settings in an XML file for use by .net?

Ideally I'd be using files of the same basic structure as an app.config and pulling settings buy so long as I can get any sort of "pathed" XML storage for settings I'd be okay. Ideally given something like : <Root> <ApplicationSettings> <Setting key="SomeKey", value="SomeValue"/> </ApplicationSettings> </Root> I'd call something ...

Webservice returned xml value into Excel

Hi, I connect to a web service, and it returns a IXMLDOMNodeList type variable. It looks as though the node list's item(0) contains the schema, and item(1) contains all the table data. How can I transfer this data into the excel spreadsheet? This is what it returns when I debug.print results.item(0).xml (results is the results of t...

How to add doctype with ID attribute to the XML file in java?

Hi, I am dynamically creating a DOM object and need to add following doctype to the XML file in java: <!DOCTYPE MyXml [<!ATTLIST node id ID #REQUIRED>]> I am using org.w3c.dom, is there any way we can do this? Regards, Abhishek ...

Is there jQuery like selectors for Java XML parsing?

When I want to find elements from XML in with jQuery, i can just use CSS selectors. Is there any similar selector system for XML parsing in Java? ...

using readXML into a JCO.table after the XML was created using JCO

Hi all! I created a JCO.table and transformed it into XML using myTable.writeXML (JCO method) now I'm trying to re-load the XML into a JCO.table and work with the table created from the XML. I tried to use myNewTable.readXML (another JCO method) but I need to create an instance to my new table before and I suspect it is created empty a...

How to Convert XML Webservice response data in Asp.net ?

I am getting data from xml webservice. The data is coming in: <![CDATA]> like <![CDATA[Semi-Detached, Didcot]]>. I have used HtmlEncode to convert or get data from above tag but unable to get data. I wanna get data from <![CDATA]> tag and display in a grid. Thanks in adavance ...

Using fn:sum in XSLT with node-set containing null-values

I'm trying to sum up a set of values in an XML using XSLT and XPath function fn:sum. This works fine as long as the values are non-null, however this is not the case. To illustrate my problem I've made an example: <?xml version="1.0"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ...

What is an empty element?

According to the XML spec, this is the definition of an empty element: An element with no content is said to be empty.] The representation of an empty element is either a start-tag immediately followed by an end-tag, or an empty-element tag. (see: http://www.w3.org/TR/REC-xml/#NT-content) Now, I have no problem understanding empty...

adding element to xml file from c#.net

hi all, how to add element to a xml file using asp.net& c#.net inweb application ...

Need to extract values from a XML file

Hello, I have a XML file, and the layout is such <author> <name></name> <iso></iso> <price></price> </author> I know how it loops. I want to know how I can extract the value of <name> Thanks Jean [edit] my apologies, if in the <author> <name> <first_name></first_name> <last_name></...

How to change the extension of a processed xml file (using eXist & cocoon)

Hi all, I'm really new to this whole web stuff, so please be nice if I missed something important to post. Short: Is there a possibility to change the name of a processed file (eXist-DB) after serialization? Here my case, the following request to my eXist-db: http://localhost:8080/exist/cocoon/db/caos/test.xml and I want after seria...

XML stores text data with double quotes, JavaScript crashes when retrieving data

Hi all, I am not sure I am going to be able to explain this one right as it may be difficult for me to explain, but I am going to try. I have a web form which it publish the data to a XML file, then it shows the data in another web page. Everything works fine, but when the user types a double quote character, at the time the web page ...

Max. Requests Twitter

I wanted to use the Twitter API to get the friends status list from many users. How many requests could I request in one moment? Little another question: What's faster: XML or JSON with a lot of data with PHP? ...

Where is the documentation for MSXML API?

Especially for vbscript/ASP. set xmlDoc = CreateObject("Msxml2.DOMDocument.3.0") ...

Wrap XmlNode with tags - C#

I have the following xml: <span>sometext</span> and I want to wrap this XmlNode with another tag: <p><span>sometext</span></p> How can i achieve this. For parsing i use XmlDocument (C#). ...

Transform xml structure to another xml structure with xslt

Hello, I have a question. I have the following source xml file: Source xml: <Container> <DataHeader> <c id="b" value="TAG" /> <c id="g" value="Info" /> </DataHeader> <Data> <Rows> <r no="1"> <c id="b" value="uid1" uid="T.A.uid1" /> <c id="g" value="uid1|tag1|attr1|somevalue1" /> </r> <...

How does the XML class look ?

I need to know how the XML class for the serialization should look like: I need this XML <?xml version="1.0" encoding="UTF-8"?> <import date="2010-02-12T23:33:39"> <T_Employee> <MI_KZ>HKBZV</MI_KZ> <MI_Name>John</MI_Name> <MI_Vorname>Doe</MI_Vorname> <MI_Nummer>987654321</MI_Nummer> <MI_DatumVon>2010-02-11T10:45:3...

Blog Engine .NET with XML Data Storage How is it so fast ?

I am looking for a way to embed a blog engine into my own application and I am too curious about Blog Engine algorithm. This may not be the correct place to ask but, How is that possible to store blog entry data in an XML file like BlogEngine.Net with Default Configuration. It must be getting slower everyday while the file is getting l...