xml

Python XML Parsing Confusion

Hey all- I'm using xml.dom.mindom in Python and have retrieved the book node in the below XML tree. I want to get a list of all children nodes. In this case, I would think there would only be one. <Book> <Title>Why is this so hard</Title> </Book When I call: nodeList = bookNode.childNodes print "nodeList has " + str(nodeList...

XML declaration with "FOR XML PATH" in SQL Server 2005

Below is a simplified version of a query that I have already created. The query works fine, but I cannot figure out how to get the XML declaration at the top of the generated XML. I've tried multiple things and searched far and wide on the Google, but alas I cannot seem to find out how to do this ... or even if it is possible. select ...

Is there a XSD schema for SQL Select statement

I have a SQL SELECT Statement: SELECT Code, Description FROM Table1 WHERE (Code='a' and Amount>100) or (Code='b' and Amount<100) I wish to use XML to present the SELECT statement. Here is my initial design: <select table="Table1"> <columns> <column name="Code"/> <column name="Description"/> </columns> ...

Confusion about child nodes of documenElement in XML DOM

Hi, Consider this xml as:- book.xml <bookstore> <book category="cooking"> <title lang="en">Everyday Italian</title> <author>Giada De Laurentiis</author> <year>2005</year> <price>30.00</price> </book> <book category="children"> <title lang="en">Harry Potter</title> <author>J K...

Practical Difference between XHTML, HTML, AND XML

So here's what I understand (please correct if wrong) : HTML5 is the newest version (or at least soon to be released) of HTML and contains features that XHTML does not yet have XHTML served as MIME type text/html is equal to HTML for the purposes of rendering Converting from text/html to application/xhtml+xml is difficult because it's ...

type of excel using SpreadXML

Hi, I have exported data as an excel file using SpreadXML from server. I saved the file as "report.xls"...but if i open the file and try to "save as", i am able to see that type file is "xml". How shud i change the type to xls while saving ...

How to generate XML from XSD using perl

i am trying to genarate XML from xsd using perl can anyone guide me in right direction thank you <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:books" xmlns:bks="urn:books"> <xsd:element name="books" type="bks:BooksForm"/> <xsd:complexType name="BooksForm"> <xsd:sequence> <xsd:element...

Index xml files from a outside website

Using python django I would like to access this site http://www.reta-vortaro.de/revo/ It is a dictionary site for a language called esperanto, I need to be able to search for a word, and get back its definition, it looks like Each Esperanto root word has an xml file, I need to index each xml file store the name of each xml file in...

get a list of all the xml pages on a website

using php how do I go to a website and receive a list of all the xml files on a site. (It would also be nice to get the last date changed also) There is a html files linking to html pages with a xml counterpart, does that help? ...

change the format of SpreadXML type excel file

Hi, We are displaying in an XML spreadsheet data exported from an SQL server DB and if th euser clicks save without changing the format the file size is over 6 time the size of the same data in native .xls Does anyone know a way to force the save as .xls? ...

Best XML parser for C

Hi, We have to add a new interface to our existing C application. The new interface system requests to our C application and responses to interface will be XML files. We need find a way to read and write XML files. It seems there are many mapping tools available for Java and C++. I did not find anyone for C. Please let me know if ther...

Flex Code Generator based on XML or Database Structure

I don't know if it exists some code generation method for Flex based on XML or Database Structure. For example, we want to manipulate a table in the DB, the most common task is (View/Insert/Update/Delete). And when we have more than 100 fields on the interface, it's rather boring to type them manually in Flex. Is there some ways to gene...

XML to store system paths in Python with lxml

Hi, I'm using an xml file to store configurations for a software. One of theese configurations would be a system path like > set_value = "c:\\test\\3 tests\\test" i can store it by using: > setting = etree.SubElement(settings, > "setting", name=tmp_set_name, type = > set_type , value= set_value) If I use doc.write(output_file, m...

Is it possible to detect the presence of a (xml) tag using XSLT ?

I am suppose to test the presence of a tag and create a new node according to the result .. This is the input XML : <root> <tag1>NS</tag1> <tag2 id="8">NS</tag2> <test> <other_tag>text</other_tag> <main>Y</main> </test> <test> <other_tag>text</other_tag> </test> </root> And the required output XML i...

What is the absolutely cheapest way to select a child node in Nokogiri?

I know that there are dozens of ways to select the first child element in Nokogiri, but which is the cheapest? I can't get around using Node#children, which sounds awfully expensive. Say that there are 10000 child nodes, and I don't want to touch the 9999 others... ...

XML data visulization

Hi , What type of structure would I need to create chart's like the following ? http://www.axiis.org/examples.html If you could provide me with a link to a xml file which show's the type of structure that would be great. Thanks ...

parse string with tags

Hi all, I am receiving a chunk of data from PBX in string with tags included. Something like this: </response><rid>2</rid><name>2101<name><PeerList></PeerList><status>UNKNOWN</status> cont...till it fetches all the names/users from the PBX. what i need to do is to parse this string data to retrieve name & status and update i...

XSLT multiple replacing

I have an XML document, something like <root> <item>_x0034_SOME TEXT</item> <item>SOME_x0020_TEXT</item> <item>SOME_x0020_TEXT_x0032_</item> </root> I'm exporting it to HTML, but I have problems replacing escape characters. I have found several templates in the web to do text replacing but they all are similar to this: <xsl:tem...

How to eliminate superfluous namespace declarations in SQL generated XML?

I'm fine tuning a web app that calls SOAP services backed by SQL stored procedure calls. Typically the stored procs generate XML that becomes part of the SOAP response, and that XML has many superfluous xmlns namespace declarations. In pathological cases this can be 30% or more of the char encoded XML measured in bytes, e.g.: <GetFooRes...

Getting hold of FastInfoset readers and writers

JDK 1.6 includes the capability for using FastInfoset web services via the JAX-WS API. The implementations of these are hidden deep inside com.sun.xml.internal, with package names designed to put the fear of god into any sensible java developer (e.g. com.sun.xml.internal.fastinfoset.stax.StAXDocumentParser (which implements XMLStreamRe...