Jump to content

Search the Community

Showing results for tags 'xml'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

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

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

  1. 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>
  2. 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>
  3. 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
  4. 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
  5. 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!
  6. 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
  7. 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
  8. 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.
  9. 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
  10. 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 ?
  11. I want to create a PHP form that sends the details from the form as a XML attachment. What is the easiest way to do this?
  12. On my blog TechnoPcArea the sidebar is appearing belo the blog psots,I think it should be appearing at the right side.I cross checked the css and everything is fine,what has happened.Can anybody help Me ? Below is a screenshot I hope this screenshot would be helpful
  13. I'm in the final stretch of this project. It 1) takes data from a server-side SQL database using php; 2) generates and saves a xml file to the server; and 3) uses a xsl transform and word template document along with the previously generated xml file to generate a word 2010 document which is pushed out to the client. I've been able to get the word document working just fine for all of the text fields but am having trouble with the checkbox. I want to be able to check or leave un-checked a checkbox in the word template document based upon a value in the xml file. The relevant xslt code section is: <w:checkBox><w:sizeAuto/><w:default w:val="0"/></w:checkBox> If I could change the default "val" from "0" to "1" based upon the content of the xml file, that would make the change I'm looking for. I've already written code to create a "0" or "1" in the relevant location on my xml file. All I need to know is how to change the xsl transform code based upon a "0" or "1" value in the xml file. Any suggestions would be welcomed.
  14. Hi thereI'm not a programmer, but need some help to find a way of displaying text in the CDATA section of an XML file using XSL. Or if there is an alternative to using XSL then I'm all ears (eyes?). Take, for example, the following line of my XML file: <property id="instruction1" media="screen"><![CDATA[<p>Select the <span class="bold">option</span> you think is correct.</p>]]></property> I ONLY want to display the text between the 'p' tags, i.e. "Select the option you think is correct." The formatting 'span' tag can be included if necessary, just as long as the 'p' tags are not displayed. Is this possible? Edit: I should clarify that I would like to create an XSL to use to display the XML content in a browser window. The full XML file is attached if required. Thanks a lotNiall 01_01_005.xml
  15. I'm trying to load an xml file into an html file using jquery... i'm using jquery bc the site is built in Adobe's Business Catalyst and doesnt allow for any server-side scripting languages. The XML fIle is broken down into five sections - Corporation Builder Subdivision Plan and Spec- with child nodes within themThe following node names are in the following format (Parent Child). The data that I am trying to display are the: "Builder BrandName", "Spec SpecStreet1", "Spec SpecPrice", "Subdivision SubParentName", "Plan Description", "Spec SpecElevationImage", "Spec SpecBedrooms", "Spec SpecBaths", "Spec SpecSqft", "Spec SpecGarage"So far I've managed to .find and .append all the information in the correct format within its appropriate div with one exception - The data is being repeated around 78 times. Where there should only be one version of each address. So my question is:What can i do to continue displaying the data on my page (http://www.fallsatimperialoaks.com/home-inventory/index_copy.html) without having the data repeated?The XML File is located at http://www.fallsatimperialoaks.com/I8959.xml <script type="text/javascript"> $(document).ready(function(){ $.ajax({ type:"GET", url:"/I8959.xml", dataType:"xml", success: function(data){ $('#load').fadeOut(); $(data).find("Builder").each(function(){ var Brandname = $(this).find("BrandName").text(); var Subdivision = $(this).find("Subdivision SubParentName").text(); $(data).find("Plan").each(function(){ var Description = $(this).find("Description").text(); $(data).find("Spec").each(function(){ var Address = $(this).find("Spec SpecStreet1").text(); var Price = $(this).find("Spec SpecPrice").text(); var Image = $(this).find("Spec SpecElevationImage").text() + '" width="220" height="124" alt="' + $(this).find("Spec SpecStreet1").text(); var Beds = $(this).find("Spec SpecBedrooms").text(); var Baths = $(this).find("Spec SpecBaths").text(); var Sqft = $(this).find("Spec SpecSqft").text(); var Garage = $(this).find("Spec SpecGarage").text();//Append to homecontainer $("#homecontainer").append(' <div class="address"> ' + Address + ' <br><span>Section: ' + Subdivision + '</span>' + '</div>' + ' <div class="price"> $' + Price + ' <br><span> ' + Brandname + ' </span>' + '</div>' + '<div class="clearboth"></div>' + ' <div class="home-image"><img src="' + Image + '"/>' +'</div>' + ' <div class="home-description"> ' + Description + '</div>' + '<div class="clearboth"></div>'); $("#homecontainer").append(' <div class="stats"><div class="beds"><img alt="" src="/images/ico-beds.png" style="border: 0px; width:22px;" /> ' + Beds + ' Bedroom(s)</div><div class="baths"><img alt="" src="/images/ico-baths.png" style="border: 0px; width:22px;" /> ' + Baths + ' Bath(s)</div><div class="sqft"><img alt="" src="/images/ico-sqft.png" style="border: 0px; width:22px;" /> ' + Sqft + ' Sq. Ft.</div><div class="garage"><img alt="" src="/images/ico-garage.png" style="border: 0px; width:22px;" /> ' + Garage + ' Car Garage</div></div>'); }); //End Data Function "Spec" }); //End Data Function "Plan" }); //End Data Function "Builder" }, error:function(){ $("#homecontainer").text('Failed to get feed'); } });}); </script> Any help is appreciated! 
  16. HELPERS IN THE XML THREADS!!!!!!!
  17. targetNameSpace is to set a name space for the xml element in my schema? yes or no then an explanation comment please. a xmlns:xsi="uri" is to set the prefix for the xsi namespace and axsi:noNamespaceSchemaLocation="uri" is to set the location of my schema? yes or no, then a feedback comment please. is the targetNameSapce needed... I find it non-necessary to do when it can(by what I'm reading) define top level element and complex type(another question is that by definning type level complex type, do that also mean that type level complex when use in a element that is nested in another element gain the namespace too?). I find it unnecessary to use targetNameSapce when it doesn't cover all element being defined in the schema.informational feedback please anyone!
  18. It'll be great if you could fill the xmls tutorial with example. Considering how short most of them all. Espically xslt, xquery, xpath, etc.
  19. On my blog,I have added a code for page navigation,but it doesn't works,.Nothing appears at the place of navigation,Can anybody help me to fix that ? The code can be found in the html of my template,between the:<!--Page navigation stars--> and <!--Page navigation ends-->tag. Or you can also see the code below <!--Page Navigation Starts--> <script style='text/javascript'> var postperpage=9; var numshowpage=4; var upPageWord=" < "; var downPageWord=" > "; var home_page="/"; var urlactivepage=location.href; </script> <script type='text/javascript'> //<![CDATA[ //]]> </script> <!--Page Navigation Ends --> Styles of the page can be found in the css of my blog.
  20. I want to change my xml file into xsl so that it can fit into my chart, I am trying to put it into ascending form… This is my .xml<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="banks.xsl"?> <chart caption='Banks' xAxisName='Bank Types' yAxisName='Amount' numberPrefix='$' showValues='0'> <set label='UOB' value='420000' /> <set label='UOB' value='910000' /> <set label='DBS' value='720000' /> <set label='OCBC' value='550000' /> <set label='UOB' value='810000' /> <set label='DBS' value='510000' /> <set label='OCBC' value='680000' /> <set label='UOB' value='620000' /> <set label='DBS' value='610000' /> <set label='OCBC' value='490000' /> <set label='OCBC' value='530000' /> <set label='DBS' value='330000' /> <styles> <definition> <style name='CanvasAnim' type='animation' param='_xScale' start= '0' duration='1' /> </definition> <application> <apply toObject='Canvas' styles='CanvasAnim' /> </application> </styles> </chart> And this is my .xsl file <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="chart"> <xsl:apply-templates select="label"> <xsl:sort order="ascending" /> </xsl:apply-templates> </xsl:template> </xsl:stylesheet> I had another try: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:output indent="yes"/><xsl:strip-space elements="*"/><xsl:template match="@*|node()"><xsl:copy><xsl:apply-templates select="@*|node()"><xsl:sort select="@value"/></xsl:apply-templates></xsl:copy></xsl:template></xsl:stylesheet> But both cannot work... please help me... Thank you!!!
  21. There isn't any clear(known) example of this: <?xml version="1.0" encoding="UTF-8"?><!-- Edited by XMLSpy -->-<bookstore>is this a document fragment?-<book category="cooking"><title lang="en">Everyday Italian</title><author>Giada De Laurentiis</author><year>2005</year><price>30.00</price></book>And can extract this fragment?-<book category="children"><title lang="en">Harry Potter</title><author>J K. Rowling</author><year>2005</year><price>29.99</price></book>-<book category="web"><title lang="en">XQuery Kick Start</title><author>James McGovern</author><author>Per Bothner</author><author>Kurt Cagle</author><author>James Linn</author><author>Vaidyanathan Nagarajan</author><year>2003</year><price>49.99</price></book>-<book category="web" cover="paperback"><title lang="en">Learning XML</title><author>Erik T. Ray</author><year>2003</year><price>39.95</price></book></bookstore>
  22. The previous button of carousel,a slider appearing below menu containing links like Home,All Posts etc. is not working correct on this blog.It is appearing in the following way:- I have highlighted the button which is having problem, it should appear in the following way:- Can anybody help me,it is spoiling the look of my blog,
  23. With the previous template of my blog,I created various pages with the font Sniglet.And now after changing the template,main font of my blog is Oswald.So is there anyway in javascript,css,html5 or in xml through which I can add a piece of code in the homepage of my blog and all the Sniglet fonts would get replaced with oswald
  24. There's a carousel at the top of this blog,a kind of slider just below the menu containing text like Home,Suggestions etc. and there is text background added on the text appearing over the images it appears behind the text but not the way I want.I want it to appear in the following way,how to do it.
  25. In my this post-->http://technopcarea.blogspot.com/2014/06/how-to-make-your-websites-design.html or others like it,in steps to add the widget the bullets are not appearing,at the place of <li> tag disc's should appear but nothing is appearing,why ?
×
×
  • Create New...