Jump to content

Search the Community

Showing results for tags 'xml'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Found 182 results

  1. Hello, Trying to design and configure structure of the Web service that needs to be used in remote client ( thin or thick clients ) systems. Three Web services server suppose to provide full funcionality: 1. extracting from the client local system the data according to the predefined scheme from the central remote point. 2. validating just produced XML by taking it from the queue. 2.1 validation against schema 2.2 validation against the remote ( central ) database - references against registers/catalogues - used codes against other domains - validations on bulks/chunks of data in the XML ( all values of some field/column or two or many of them ) - some special validating procedures that 3. returning validation status through XML list of errors and apropriate logs or in case of passing all controls only notice on success 4. if the validation succeeded the XML is sent to central place in the status ready for unpackaging the data from XML and putting data into relational stables ( same that were used as valid Grateful for references, experiences and suggestion,
  2. I am analyzing an XML-DSIG file in order to know how to write my piece of software code that generates XML-DSIGnatures. I am having this trouble and desperately need help... This is a bit I am trying to understand from an attached signatures0.xml: <SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> [...deleted...] <Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#SignedPropertiesElem_0" xmlns="http://www.w3.org/2000/09/xmldsig#"> <Transforms xmlns="http://www.w3.org/2000/09/xmldsig#"> <Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/> </Transforms> <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/> <DigestValue>kOlNXyBs6oSP9hbh+4niZMNQ9OsOCzYhkSYYG4YdHQU=</DigestValue> </Reference></SignedInfo> From what I understand, this refers to a SignedPropertiesElem_0 element in the same file. I am trying to determine exactly what it refers to - what piece of code should be selected and used later on for canonicalization and then calculating a digest value. Is it this: <SignedProperties Id="SignedPropertiesElem_0"> <SignedSignatureProperties> <SigningTime>2014-08-21T06:09:55Z</SigningTime> <SigningCertificate> <Cert> <CertDigest> <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" xmlns="http://www.w3.org/2000/09/xmldsig#"/> <DigestValue xmlns="http://www.w3.org/2000/09/xmldsig#">JQ0kZvd0mtXQPA/RTuYV9iuc346tznvN9MoAd/0jNyM=</DigestValue> </CertDigest> <IssuerSerial> <X509IssuerName xmlns="http://www.w3.org/2000/09/xmldsig#">CN=Nacionalinis sertifikavimo centras (IssuingCA-,OU=Nacionalinis sertifikavimo centras (NSC),O=Gyventoju registro tarnyba prie LR VRM - i.k. 188756767,C=LT</X509IssuerName> <X509SerialNumber xmlns="http://www.w3.org/2000/09/xmldsig#">1315010063538360283821765366094690</X509SerialNumber> </IssuerSerial> </Cert> </SigningCertificate> <SignaturePolicyIdentifier> <SignaturePolicyImplied/> </SignaturePolicyIdentifier> </SignedSignatureProperties> </SignedProperties> Or this: <SignedSignatureProperties> <SigningTime>2014-08-21T06:09:55Z</SigningTime> <SigningCertificate> <Cert> <CertDigest> <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" xmlns="http://www.w3.org/2000/09/xmldsig#"/> <DigestValue xmlns="http://www.w3.org/2000/09/xmldsig#">JQ0kZvd0mtXQPA/RTuYV9iuc346tznvN9MoAd/0jNyM=</DigestValue> </CertDigest> <IssuerSerial> <X509IssuerName xmlns="http://www.w3.org/2000/09/xmldsig#">CN=Nacionalinis sertifikavimo centras (IssuingCA-,OU=Nacionalinis sertifikavimo centras (NSC),O=Gyventoju registro tarnyba prie LR VRM - i.k. 188756767,C=LT</X509IssuerName> <X509SerialNumber xmlns="http://www.w3.org/2000/09/xmldsig#">1315010063538360283821765366094690</X509SerialNumber> </IssuerSerial> </Cert> </SigningCertificate> <SignaturePolicyIdentifier> <SignaturePolicyImplied/> </SignaturePolicyIdentifier> </SignedSignatureProperties> Or this: <SigningTime>2014-08-21T06:09:55Z</SigningTime> <SigningCertificate> <Cert> <CertDigest> <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" xmlns="http://www.w3.org/2000/09/xmldsig#"/> <DigestValue xmlns="http://www.w3.org/2000/09/xmldsig#">JQ0kZvd0mtXQPA/RTuYV9iuc346tznvN9MoAd/0jNyM=</DigestValue> </CertDigest> <IssuerSerial> <X509IssuerName xmlns="http://www.w3.org/2000/09/xmldsig#">CN=Nacionalinis sertifikavimo centras (IssuingCA-,OU=Nacionalinis sertifikavimo centras (NSC),O=Gyventoju registro tarnyba prie LR VRM - i.k. 188756767,C=LT</X509IssuerName> <X509SerialNumber xmlns="http://www.w3.org/2000/09/xmldsig#">1315010063538360283821765366094690</X509SerialNumber> </IssuerSerial> </Cert> </SigningCertificate> <SignaturePolicyIdentifier> <SignaturePolicyImplied/> </SignaturePolicyIdentifier> Or some other part of it? I tried the first one, then letting it through a StylusStudio canonicalization OR http://www.soapclient.com/xmlcanon.html (both seem to return identical results), which results in this: <SignedProperties Id="SignedPropertiesElem_0"> <SignedSignatureProperties> <SigningTime>2014-08-21T06:09:55Z</SigningTime> <SigningCertificate> <Cert> <CertDigest> <DigestMethod xmlns="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod> <DigestValue xmlns="http://www.w3.org/2000/09/xmldsig#">JQ0kZvd0mtXQPA/RTuYV9iuc346tznvN9MoAd/0jNyM=</DigestValue> </CertDigest> <IssuerSerial> <X509IssuerName xmlns="http://www.w3.org/2000/09/xmldsig#">CN=Nacionalinis sertifikavimo centras (IssuingCA-,OU=Nacionalinis sertifikavimo centras (NSC),O=Gyventoju registro tarnyba prie LR VRM - i.k. 188756767,C=LT</X509IssuerName> <X509SerialNumber xmlns="http://www.w3.org/2000/09/xmldsig#">1315010063538360283821765366094690</X509SerialNumber> </IssuerSerial> </Cert> </SigningCertificate> <SignaturePolicyIdentifier> <SignaturePolicyImplied></SignaturePolicyImplied> </SignaturePolicyIdentifier> </SignedSignatureProperties> </SignedProperties> and then calculating the digest value using these tools: http://www.webutils.pl/index.php?idx=sha1 http://hash.online-convert.com/sha256-generator http://www.freeformatter.com/message-digest.html#ad-output They all returned the same result, but that result is different from the one in the xml file: kOlNXyBs6oSP9hbh+4niZMNQ9OsOCzYhkSYYG4YdHQU=. What am I doing wrong? What part of the xml document should I copy and paste into the canonicalizer and then into digest calculator? I've spent several days trying different things and looking for answers and haven't got anything... I am sure I missed something, therefore I am asking for your help.
  3. In the AppML tutorial a sample application with Northwind.mdb is given for download. In the model section an xml document provides a connection to the database with a select statement such as Select * from Products. However, from time to time, we need to provide a select statement that includes some parameters for the where clause, for example: Select * from Products where CategoryID = @CategoryID and SupplierID=@SupplierID. I would appreciate it if someone can advise, and provide an example, on how to handle the input parameters of @CategoryID and @SuppierID, in the xml as well as in the html pages. Often, the input parameters can be chosen from a dropdown list such as dropdown_Categories and dropdown_Suppliers. In such cases, how do we code these in the related html pages? Thanks and regards
  4. Hi, I've just built a basic web site, but I now realise (by going through the process) that I need to understand other languages & processes in order to make the site streamlined & fully functional. Because I've only learnt html & css (on a basic level) my understanding of php, sql, js, xml, etc is very poor. I therefor need some advice on what the best mechanisms are for inputting data, storing it & displaying it on the web, possibly with some type of rss feed too. The basic process the site is doing, can be described as follows: 1. Users enter data using an online form. 2. Data is stored on a database & manually verified. 3. Certain info from the database is automatically displayed on the site (but not all) in a friendly viewable format. 4. Every time the site is updated a feed is created (like an rss or blog). The first two processes I have achieved, but I am exploring ways of achieving the 3rd & 4th processes. Any advice on what methods or languages would be best to use would be greatly appreciated. I'm happy to learn any coding required. The data set can be stored in various formats (xlsx, csv, ods, tsv, etc), its really a question of the best way to interpret it & automatically display it that I am exploring. Along with creating the feed. Thanks for any advice. Old Guy.
  5. Hello and thank you to anyone and everyone that responds. I am very new to XML and have done some of the tutorials, but I am having trouble getting the information to pull. The XML file is automatically updated by a website and I would like to pull information off of it to put on my own website. First off, do I need to re-load the XML file on my site first? Someone said that I was going to have to do this but I am not sure how. I feel as though this could be the error that I am facing. http://gamebattles.majorleaguegaming.com/xboxone/call-of-duty-advanced-warfare/team/never-hide-gaming/stats.xml This is the code that I am trying to use. If I can get one thing to actually pull, then I can figure the rest out. I have been using the Tryit Editor so far to test everything before populating my site. <!DOCTYPE html><html><head><style>table, th, td { border: 1px solid black; border-collapse:collapse;}th, td { padding: 5px;}</style></head><body><script>if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.open("GET","gamebattles.majorleaguegaming.com/xboxone/call-of-duty-ghosts/team/never-hide/stats.xml",false);xmlhttp.send();xmlDoc=xmlhttp.responseXML; document.write("<table><tr><th>Team</th><th>Result</th></tr>");var x=xmlDoc.getElementsByTagName("recentMatches");for (i=0;i<x.length;i++) { document.write("<tr><td>"); document.write(x[i].getElementsByTagName("name")[0].childNodes[0].nodeValue); document.write("</td><td>"); document.write(x[i].getElementsByTagName("result")[0].childNodes[0].nodeValue); document.write("</td></tr>"); }document.write("</table>");</script></body></html> Sorry that this is so long and drawn out, but thank you very much in advance.
  6. Hello Everyone, 'm developing software Customer Management System in C# windows application based on XML Database. In my database near by 1,00,000 entries. i have a trouble in retrieving 1,00,000 entries. its take more time to show the data. let me know the fast retrieving solutions as soon as possible. Its My Coding (Retrieving) XElement xelement1 = XElement.Load(ZXmlDetails.Path + @"Noti_Payment.hash"); var detailss1 = (from nm in xelement1.Elements("Details") orderby (String)nm.Element("IBillNo") select nm); if (detailss1.Count() > 0) { foreach (var xEle1 in detailss1.Distinct()) { int x = PaymentLoop.Rows.Add(); PaymentLoop.Rows[x].Cells[0].Value = xEle1.Element("IBillNo").Value.ToString(); PaymentLoop.Rows[x].Cells[1].Value = xEle1.Element("CName").Value.ToString() + " -- " + xEle1.Element("CPhoneNo").Value.ToString(); PaymentLoop.Rows[x].Cells[2].Value = xEle1.Element("NetTotal").Value.ToString(); PaymentLoop.Rows[x].Cells[3].Value = Convert.ToDouble(xEle1.Element("NetTotal").Value.ToString()) - Convert.ToDouble(xEle1.Element("Payment").Value.ToString()); } } Thanks & Regards
  7. Chi è disposto ad aiutarmi per sostenere un esame di XML ? C'è anche un progettino da implementare in Java. Prego chiamarmi al 3400513727
  8. Hello, this might be the most stupid thing a man can ask here, but i haven't used javascript and xml for couple of years and i have forgotten everything. for example, Lets say i have a XML document called "phones.xml" in this document, i have this information: <phones> <galaxy_s4> <galaxy_s4_price>300 Eur</galaxy_s4_price> <galaxy_s4_price_per_month>12 Eur</galaxy_s4_price_per_month> </galaxy_s4> <lg_g2> <lg_g2_price>300 Eur</lg_g2_price> <lg_g2_price_per_month>12 Eur</lg_g2_price_per_month> </lg_g2> <htc_one> <htc_one_price>300 Eur</htc_one_price> <htc_one_price_per_month>12 Eur</htc_one_price_per_month> </htc_one> <meizu_mx4> <meizu_mx4_price>300 Eur</meizu_mx4_price> <meizu_mx4_price_per_month>12 Eur</meizu_mx4_price_per_month> </meizu_mx4></phones> now, i want to display the price and price_per_month in my text just for the galaxy s4, but i don't want to put this information as a table, that shows all prices. i want just to print out for galaxy s4. I want to use this information in my text. now, i tried to make an HTML document, that would show the XML information, but it doesnt work. <head></head><body><script>if (window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); }else{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.open("GET","phones.xml",false); xmlhttp.send(); xmlDoc=xmlhttp.responseXML;var galaxy_s4 = xmlDoc.getElementsByTagName("galaxy_s4");var galaxy_s4_price = xmlDoc.getElementsByTagName("galaxy_s4_price")[0];var galaxy_s4_ppm = xmlDoc.getElementsByTagName("galaxy_s4_price_per_month")[0];document.write('for our latest, offer, the galaxy s4 costs only ');document.write(galaxy_s4_price);document.write(' and the price per month is ');document.write(galaxy_s4_ppm);</script></body> when i try to run this code, instead of showing the price, it just prints out "undefined". how can i make the code to run and show my my information?
  9. Hi guys I have been experimenting with Google Maps API and I have been able to create 2 different Maps that do what I want 1 map to do. I have a map with pins that I retrieved from a SQL database and another map that has weather layers using KML. Whenever I try to merge these two maps together both the weather layer and the pins fail to load. I think it has something to do with the function that initializes the maps. In lm.html I always used the initialize function to load the body but in the index.html the template uses a load body function. I think this is what causes the errors I am getting. The file index.html has my pins. You will need the config and xml files . It really just uses the tutorial file here https://developers.google.com/maps/articles/phpsqlajax_v3. This file lm.html is just a maps with my KML weather layers. How can I add weather layers to index.html? config.php index.html lm.html maps_xml.php
  10. Dear all. I am planning to embed a google map into a PHP script. The script retrieves data from a MySQL DB into the map. All sources I have come across so far demand the use of XML as an intermediary between MySQL and the map. There is the possibility of writing the map page as a PHP file and outputting JS for markers to be created in the map, but this is claimed to be more problematic method. Is there an easier way to achieve the above without XML or JS?
  11. Dear Experts,I'm trying to parse an odd XML file that looks like this:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>Major Version</key><integer>1</integer><key>Minor Version</key><integer>1</integer><key>Application Version</key><string>9.2.1</string><key>Features</key><integer>5</integer><key>Show Content Ratings</key><true/><key>Library Persistent ID</key><string>9210E514389C76D3</string><key>Tracks</key><dict><key>732</key><dict><key>Track ID</key><integer>732</integer><key>Name</key><string>Tears All Over Town</string><key>Artist</key><string>A Girl Called Eddy</string><key>Album Artist</key><string>A Girl Called Eddy</string>...</dict><key>760</key><dict><key>Track ID</key><integer>760</integer><key>Name</key><string>The Nightingale</string><key>Artist</key><string>Angelo Badalamenti</string><key>Album</key><string>Twin Peaks</string><key>Genre</key><string>Soundtrack</string><key>Kind</key><string>MPEG audio file</string><key>Size</key><integer>7109800</integer><key>Total Time</key><integer>296150</integer><key>Disc Number</key><integer>1</integer><key>Disc Count</key><integer>1</integer><key>Track Number</key><integer>4</integer><key>Track Count</key><integer>11</integer><key>Year</key><integer>1990</integer><key>Date Modified</key><date>2006-01-04T06:51:56Z</date><key>Date Added</key><date>2009-04-02T02:04:11Z</date><key>Bit Rate</key><integer>192</integer><key>Sample Rate</key><integer>44100</integer><key>Play Count</key><integer>4</integer><key>Play Date</key><integer>3493240930</integer><key>Play Date UTC</key><date>2014-09-11T05:42:10Z</date><key>Sort Name</key><string>Nightingale</string><key>Persistent ID</key><string>9B002DC50111B620</string><key>Track Type</key><string>File</string><key>File Folder Count</key><integer>4</integer><key>Library Folder Count</key><integer>1</integer></dict><key>762</key>...Every field in the Itunes format has <key> for the fieldname, and the <datatype> surrounding the value.This looks a lot different from the xml format that I saw in this tutorial.http://www.stat.purdue.edu/~mdw/490M/STAT490Mday29.txt<CD><TITLE>Picture book</TITLE><ARTIST>Simply Red</ARTIST><COUNTRY>EU</COUNTRY><COMPANY>Elektra</COMPANY><PRICE>7.20</PRICE><YEAR>1985</YEAR></CD>First I experimented using grep on cygwin. But I don't know how to get a specific set of three lines out of the grouping with grep.With R, I was trying to parse the file, until I looked and saw that the format was different from all the examples.This post made it look easy:How can I export my iTunes library information to a spreadsheet?https://www.quora.com/How-can-I-export-my-iTunes-library-information-to-a-spreadsheetBut it completely failed. The xml doc got imported into Open Office as a document. Not a spreadsheet.For each CD, I want to extract the Artist, Album, and Composer (if it's there)Questions:Is there a name for this type of XML file?What would be the best tool and way to parse the info from the file?grep on cygwinRPythonJavaXQuerysomething else???Thanks a lot!
  12. Hi guys, I try to build an xml document with php. Creating, saving and sending works fine. Just couldnt figure out how to insert a variable to my php-code, which creates the xml. <?php$xml = new DOMDocument("1.0", "utf-8";$root = $xml->createElement("ABC");$xml->appendChild($root);$var1 = $xml->createElement("Town");$var1Text = $xml->createTextNode('$townname');$var1->appendChild($varText);$BCD = $xml->createElement("Data");$BCD->appendChild($var1);$root->appendChild($BCD);$xml->formatOutput = true;echo "<xmp>". $xml->saveXML() ."</xmp>";$xml->save("energieausweis.xml") or die("Error");?> Instead of using a fix "createTextNode" I wanna use a variable. Something like "createVariableNode" (I know that this doesnt exist). Hope you guys understand me. I get a variable from a form, lets say $townname, which can be Vancouver or Paris. This variable shall be written in my xml. Depending on the selection from the form, my xml shall contain Vancouver or Paris and not just the text "$townname". Thanks a lot for your help!
  13. Below is the XML : How to replace the nodes in XML based on attribute using xslt. <?xml version="1.0" encoding="UTF-8"?><DST><CDGCreateTree><DST><currentJobName>PQContactComplete</currentJobName><AWD><case><transaction><UIID>Test</UIID></transaction></case><case><transaction><UIID>Testsample</UIID></transaction></case></AWD></DST></CDGCreateTree><newNode><transaction relate="Y" id="1"/></newNode></DST> 1)In above xml total 2 cases which is having individual transactions2)newNode node contains another transaction with ID(id = "1") 3)My requirement is like i want to replace first case transaction with newNode transaction which is generated basedon first case transaction only, That is the reason why i am looking into remove unnecessary data. 4)For every operation newNode contains only one transaction. Result should be: <?xml version="1.0" encoding="UTF-8"?><DST><CDGCreateTree><DST><currentJobName>PQContactComplete</currentJobName><AWD><case><transaction relate="Y" id="1"/></case><case><transaction><UIID>Testsample</UIID></transaction></case></AWD></DST></CDGCreateTree></DST> In future I may get another transaction with id under newNode node below is the xml <?xml version="1.0" encoding="UTF-8"?><DST><CDGCreateTree><DST><currentJobName>PQContactComplete</currentJobName><AWD><case><transaction relate="Y" id="1"/></case><case><transaction><UIID>Testsample</UIID></transaction></case></AWD></DST></CDGCreateTree><newNode><transaction relate="Y" id="2"/></newNode></DST> This time I should replace second case transaction with newNode transaction(becasue first case transaction already replaced with newNode transaction and it contains id value)like that I want continue the process. Finally Expected result: <?xml version="1.0" encoding="UTF-8"?><DST><CDGCreateTree><DST><currentJobName>PQContactComplete</currentJobName><AWD><case><transaction relate="Y" id="1"/></case><case><transaction relate="Y" id="2"/></case></AWD></DST></CDGCreateTree></DST> I have used below xslt, but it's not helped me, Can any one please suggest me or correct me. <?xml version="1.0"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version = "1.0"> <xsl:template match="@* | node()"><xsl:copy><xsl:apply-templates select="@* | node()" /></xsl:copy></xsl:template> <xsl:variable name="targetNode" select="//newNode/transaction"/> <xsl:template match="(//transaction[ancestor::*[name() = "CDGCreateTree"]][not(@id)])[1]"><xsl:copy-of select="$targetNode"/></xsl:template></xsl:stylesheet> Explaination of Above XSL: (//transaction[ancestor::*[name() = 'CDGCreateTree']][not(@id)])[1] this statement is defines about case transaction which is not having id and first transaction replace with (//newNode/transaction) New transaction. In future if i get any newNode transaction it should be replace accordingly to above xsl,i thought it will work as per the statemnt but some thing is missed please suggest me.
  14. Hi i am new to XSD, need some help i have a XML as <Feature> <Mobile value="true" group="Samsung_India,Nokia_Finland,Sony_Japan"/> </Feature> i am validating Mobile tag without "group" attribute as <xsd:element name="Feature"> <xsd:complexType> <xsd:sequence> <xsd:element name="Mobile" type="Boolean"/> <xsd:sequence> <xsd:complexType> My query is to also validate "group" in Mobile tag which has String values with underscore and seperated by commas. and group values are fixed. Want to validate group values and it should validate pattern of values. if someboby give invalid values then it should not validate. Thanks
  15. On my blog,there's a social sharing widget at the right looking something like this:- and there's a hover effect on the images of social media sites but I can't find any way to add links on this images in such a way that when anyone clicks on it ,is redirected to the desired link and the hover effect will remain existing
  16. King_Ming

    xml to xsd

    Hi, I'm trying to create an xsd with restriction for the following but I can't seem to find an example of how to do it properly. Basically its a string element that has an attribute. What I'm trying to do is have restriction on both the Name and the Number. So for example, for Name, I want to only allow [a-t]*, and for number I want it to be 0 -100. Thanks in advance, ~Ming XML <Name Number="10">abcdeft</Name>
  17. I've been staring at this for hours and searching forums for an answer. I have also gotten this message from another validator: "Character 'P' following the text '<' does not fulfill production 'Misc', which highlights the first start tag of <Product>. Could anyone recommend a solution? As far as I can tell I only have one root element, but maybe I'm missing something. <?xml version="1.0"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xsd:include schemaLocation="amzn-base.xsd"/> <xsd:element name="product"> <xsd:complexType> <xsd:sequence> <xsd:element name="asin" type="xsd:string"/> <xsd:element name="brand" type="xsd:string"/> <xsd:element name="title" type="xsd:string"/> <xsd:element name="category" type="xsd:string"/> <xsd:element name="description" type="xsd:string"/> <xsd:element name="wordcount" type="xsd:string"/> <xsd:element name="rating" type="xsd:string"/> <xsd:element name="review" type="xsd:string"/> <xsd:element name="listprice" type="xsd:string"/> <xsd:element name="price" type="xsd:string"/> <xsd:element name="discount" type="xsd:string"/> <xsd:element name="shipping" type="xsd:string"/> <xsd:element name="totalprice" type="xsd:string"/> <xsd:element name="parentasin" type="xsd:string"/> <xsd:element name="available" type="xsd:string"/> <xsd:element name="fulfilled" type="xsd:string"/> <xsd:element name="thumbnail" type="xsd:string"/> <xsd:element name="url" type="xsd:string"/> <xsd:element name="imageurl" type="xsd:string"/> <xsd:element name="salesrank" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> <Product> <ASIN>B003Y3E55G</ASIN> <Brand>Hydrofarm</Brand> <Title>Hydrofarm CK64081 7-Inch Vented Dome</Title> <Category>Patio, Lawn & Garden</Category> <Description>Hydrofarm ck64081 7-inch vented humidity dome</Description> <WordCount>6</WordCount> <Rating>3.7</Rating> <Review>87</Review> <ListPrice>0</ListPrice> <Price>12.88</Price> <Discount>0%</Discount> <Shipping>0</Shipping> <TotalPrice>0</TotalPrice> <ParentASIN>B003Y3E55G</ParentASIN> <Available>True</Available> <Fulfilled>False</Fulfilled> <Thumbnail>http://ecx.images-amazon.com/images/I/21cla739VIL._AA160_.jpg</Thumbnail> <URL>http://www.amazon.com/Hydrofarm-CK64081-7-Inch-Vented-Dome/dp/B003Y3E55G/ref=sr_1_24?s=lawn-garden&amp;ie=UTF8&amp;qid=1409210462&amp;sr=1-24</URL> <ImageURL>http://ecx.images-amazon.com/images/I/21cla739VIL._SS500_.jpg</ImageURL> <Description>Vented humidity dome * Easy dial vents for precise control of temperature and humidity * Durable, high-grade flexible plastic resists cracking * Designed to last longer * Great for taller cuttings * 7-inch dome gives extra height for your taller cuttings * Adjustable vents allow for perfect humidity and temperature control</Description> <SalesRank>2917</SalesRank> </Product>
  18. How can I use PHP Code for the links.xml file for the Live Search Script (http://www.w3schools.com/php/php_ajax_livesearch.asp). I have thousands of Links, which I want to be searchable. <?phpforeach ($verbs["a"] as $key => $list) {echo '<link>'."n";echo '<title>'.($verbs["a"][$key]).'</title>'."n";echo '<url>a/'.letter($verbs["a"][$key]).'/</url>'."n";echo '</link>'."n";} ?> I want also to know, how to change the script, because I want, that the first letter should be find only words, which starts which this letter and so on. like Search: A Alfred Andy Anna Astrid Search: An Andy Anna
  19. Hi,I'm trying to find some existing XML format that describe actions, characters, things, locations .... I would like to develop a software to write a play script and save it to an XML.Does anybody knows if something exists??Thanks!Massimo
  20. I've created a php file that gathers data from my SQL tables and creates a multi-sheet Excel workbook file in XML. I started this process by creating the file as I wanted it to appear using MS Excel 2010 and saved it as a XML file. I then wrote my PHP code to dynamically create the MS Excel XML file. In internet Explorer 11, when this is done, the file opens as a MS Excel file. My problem is that it doesn't work in Firefox (Version 31.0). In Firefox, it prints out on the screen as an unformatted XML file with the following message above the screen - "This XML file does not appear to have any style information associated with it. The document tree is shown below." I think the problem is in my header. This is the way the opening of my PHP file appears now: <?phpheader("Content-type: text/xml");echo "<?xml version="1.0" encoding="UTF-8"?><?mso-application progid="Excel.Sheet"?>";?><Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40"><-- More code follows --> Any help you can offer will be welcome!
  21. The next button of carousel,a kind of slider appearing below navigation menu containing link like home,suggestions etc. is not working. Earlier when we used to click on next button another thumbnail and title used to appear of next post in gadgets category,but now nothing happens. Here's a screenshot of non-working button
  22. hi i want get my currency convert from this XML file http://www.xe.com/datafeed/samples/sample-xml-usd.xml i try this code xmlDoc=loadXMLDoc("http://www.xe.com/datafeed/samples/sample-xml-usd.xml");x=xmlDoc.getElementsByTagName('cinverse')[10].childNodes[0].nodeValue;document.write(x); but don't work my currency is (Iraq Dinars) please help me
  23. I need your help for a question about XSLT. It is part of my preparation for an exam. The information given is as follows: HTML rendering of the XML document from Figure 1. Note that groups, and staff within each group, appear in the same order as in the XML document. At the end of each staff member entry, there are the identifiers of other groups to which the academic also belongs. These are hyperlinked to the start of the corresponding group sections. The final result of applying XSLT must be as shown in the attached picture. The XML file is as follows: <?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="research.xsl"?><ResearchGroups xmlns="http://www.essex.ac.uk/ce832"><Group name="Intelligent Systems Group" id="ISG"> The IntelligentSystems Group pursues internationally-leading research in a widerange of intelligent systems. </Group><Group name="Robotics" id="RBT"> The Essex robotics group is one ofthe largest mobile robotics groups in the UK. </Group><Staff name="Callaghan, Vic" title="Professor" groups="ISG RBT">Intelligent environments and robotics. </Staff><Staff name="Gu, Dongbing" title="Dr" groups="RBT"> Multi-agentand distributed control systems. </Staff></ResearchGroups> The .xsl file I have created is as follows: <xsl:stylesheetxmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:rg="http://www.essex.ac.uk/ce832"xmlns="http://wwww.w3.org/1999/xhtml"version="2.0"><xsl:template match="/"><html><head> <title>Research Groups</title> </head><body> <xsl:apply-templates select="//rg:Group"/> </body></html></xsl:template><xsl:template match="rg:Group"><xsl:variable name="ID" select="@id"/><h3> <a name="{$ID}"> <xsl:value-of select="@name"/> </a> </h3><p> <xsl:value-of select="text()"/> </p> <xsl:for-each select="//rg:Staff"> <xsl:variable name="string" select="@groups" /> <xsl:value-of select="$string" /> <xsl:variable name="stringList" select="tokenize($string, ' ')" /> <xsl:variable name="staffName" select="@name" /> <xsl:variable name="description" select="text()" /> <xsl:for-each select="$stringList"> <xsl:variable name="item" select="." /> <xsl:choose> <xsl:when test="matches($item, $ID)"> <ul> <li> <xsl:value-of select="$staffName" />: <xsl:value-of select="$description" /> <xsl:value-of select="$ID" /> </li> </ul> </xsl:when> </xsl:choose> </xsl:for-each> </xsl:for-each> </xsl:template> </xsl:stylesheet> The problem I have is with the part "At the end of each staff member entry, there are the identifiers of other groups to which the academic also belongs. These are hyperlinked to the start of the corresponding group sections." Because the first staff member belongs to two groups while the second does not. At the moment, the information displayed is the id of the current group, not as expected. The first person belongs to who groups - ISG and RBT. When their name appears in the first group, the id of the other group must be displayed and to contain link to the second group - Robotics. The same applies if the person appears in the second group. If the person does not belong to more than one group, there does not have to be a link displayed. I guess that I have to take each value from the stringList variable and make a comparison. The problem is that I do not know how to do it. I hope that somebody can help me! Thank you in advance.
  24. i have Xml that looks something like this: How can i filtering this xml for cb="1" ? I know only xpath & DataSet are ways for filtering this xml: <root> <node id="1"> <node cb="0"></node> <node cb="0"></node> </node> <node id="2"> <node id="21" cb="0"></node> <node id="22" cb="1"></node> </node> </root> What the most efficient way to make it like (filter by cb=1): enter code here <root> <node id="2"> <node id="22" cb="1"></node> </node> </root> With regards, Evgeniy Vinnikov
  25. On my blog,when I open it at the first time then some of the images and things are loaded but to get whole page I have to refresh it 2-3 times,is some kind of javascript doing this or this is a defect ?
  • Create New...