mime type for text file through xslt
I just want to know that what is the MIME type i need to give if i am generating text file from xml using xslt? ...
I just want to know that what is the MIME type i need to give if i am generating text file from xml using xslt? ...
I'm validating an XML file against a schema using XDocument.Validate and get validation messages which look something like this: The 'http://www.blablah.co.uk/schemas/cbds%3ADOB' element is invalid - The value '1999-0dsf2-21' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema%3Adate' - The string '1999...
Hi, Say I have this setup: -- tables declare @main table (id int, name varchar(20)) declare @subA table (id int, mid int, name varchar(20)) declare @subA1 table (id int, subAid int, name varchar(20)) declare @subA2 table (id int, subAid int, name varchar(20)) declare @subB table (id int, mid int, name varchar(20)) -- sample data inser...
Hello, i would like to get all validation Errors from the SAX-Parser, but with my snippet i only receive the first. How can i achieve this? Thank you! Snippet def factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI) def xml = new StreamSource(inputStream) def xsd = new StreamSource(new FileReader(schema), systemId)...
We have an application that requires loading A LOT of configuration data at startup. The data is stored in a XML File which currently is 40MB but will grow to 100MB and more. This data will change while developing but not between releases. We are looking for a way to speed up the loading process for a "fixed" set of data and one idea i...
I have a php Twitter app which lets you mark tweets as favorite. I'm doing something like this: $fav = $twitter->createFavorite("xml", $get_id);//handles api call (using curl) $fav_result = new SimpleXMLElement($fav); On my localhost and on one online server all goes well: the tweet is marked as favorite, and the api call returns xml...
I'm trying to get data from multiple XML feeds and copy that data to my local database. I've tried looking into SimpleXML and some other things I've found on the internet but I'm wondering what the best route to take with something like this. I'm looking for something that will not only get the XML from the secure location but also con...
Acctually i create this xml file using caster but when this caster generate the xml file it add the xsi:type attribute to my xml file please help me.... ...
I have looked at many examples for validating an XML file against a DTD, but have not found one that allows me to use a proxy. I have a cXml file as follows (abbreviated for display) which I wish to validate: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.018/InvoiceDetail.dtd"> <c...
I am trying to use xml builder without explicit definition of elements. This is useful when the required elements are variant. How can I accomplish something similar to the following? xml.instruct! :xml, :version=>"1.0", :encoding=>"UTF-8" for col in [:customer, :name, :address, :city, :street, :postal_code] eval("xml.#{col.to_s....
Hi , I need to set the value of a field in an XML file which exists on a remote Linux box. How do I find out which port I should connect to ? But even a proper ping is not happening: import xmlrpclib server = xmlrpclib.ServerProxy('http://10.77.21.240:9000') print server.ping() print "I'm in hurray" bUT instead I got: Traceback (mo...
I am trying to use MediaWiki's API to get articles in XML format and include them on my page. I created a simple code which basically gets the XML representation of an article using ?action=parse&page=Page_Name&format=xml requests. The code is following: if($_GET["page"]=='') die("Page not specified (possibly direct call)"); $pagename...
I set my DataContracts namespace to "" which removed one namespace but I have to remove the other: xmlns:i="http://www.w3.org/2001/XMLSchema-instance" If theres no other way, how can I serialize my class prior to returning and hack out the namespace? I have to do this to work with another companys API. ...
I am looking for a way to extract and print an element from my xml using xmlstarlet; for example if my xml is <?xml version="1.0" encoding="ISO-8859-1"?> <bookstore> <book> <title lang="eng">Harry Potter</title> <price>29.99</price> </book> <book> <title lang="eng">Learning XML</title> <price>39.95</price> </book> </bookstor...
I've got an XML file from which I've extracted the following text - The Sansa Clip+ MP3 player gives you more to enjoy. Enjoy up to 2,000 songs†† with an 8GB* player, FM radio, long-life battery and voice recorder. PLUS now even more! Expand your enjoyment when you add in preloaded content cards** into the new memory ...
Is it legal (either in the general sense or within the App Store) to use publically available XML feeds w/o contacting the original author? For example something like http://earthquake.usgs.gov/eqcenter/catalogs/7day-M2.5.xml (Not really what I'm using for my app but same type thing) ...
I'd like to use tabs, or at least more than 2 spaces per indent level. IIRC there are options available to adjust this when using serialization to write a class out; but I don't see any way to adjust the behavior when calling MyDataSet.WriteXml(filename). ...
I have a external library that requires a "XmlNode[]" instead of XmlNodeList. Is there a direct way to do this without iterating over and transferring each node? I dont want to do this: XmlNode[] exportNodes = XmlNode[myNodeList.Count]; int i = 0; foreach(XmlNode someNode in myNodeList) { exportNodes[i++] = someNode; } I am doing thi...
Hello, I'm attempting to iterate through a response from a jQuery Ajax request (returned as XML). With that response, I'm building an HTML table with 3 columns (capable of an unlimited number of rows). Once the 4th XML node/ "company" is found, it should start a new row in the table. Any help with the JS to determine when the new row ...
Hi It looks like there are many problems with simpleXML in PHP. I'm running the latest version of php on Windows and I just can not get the basic examples of simpleXML to work as in the documentation. My xml file is: <?xml version="1.0" encoding="ISO-8859-1"?> <programme> <title>Billy Bushwaka</title> <episodeNumber>2</epis...