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. HI. I need to intergrate several xml documents into a master xml document.I did everything but my problem is that the second xml file prints continouslly. eg No1.xml <root> <name1> some name</name1> <name2> some name </name2></root> <root1> <name1> some name</name1> <name2> some name </name2></root1> No2.xml<anotherRoot> <alias> some alias</alias> <alias2> some alias </alias2><anotherRoot> <anotherRoot1> <alias> some alias</alias> <alias2> some alias </alias2><anotherRoot1> Expected output <root> <name1> some name</name1> <name2> some name </name2></root> <anotherRoot> <alias> some alias</alias> <alias2> some alias </alias2><anotherRoot> <root1> <name1> some name</name1> <name2> some name </name2></root1><anotherRoot1> <alias> some alias</alias> <alias2> some alias </alias2><anotherRoot1> But the utput I get<root> <name1> some name</name1> <name2> some name </name2></root> <anotherRoot> <alias> some alias</alias> <alias2> some alias </alias2><anotherRoot> <anotherRoot1> <alias> some alias</alias> <alias2> some alias </alias2><anotherRoot1> <root1> <name1> some name</name1> <name2> some name </name2></root1> <anotherRoot> <alias> some alias</alias> <alias2> some alias </alias2><anotherRoot> <anotherRoot1> <alias> some alias</alias> <alias2> some alias </alias2><anotherRoot1> Is there a function for that.
  2. I have been trying to develop my google places map. I found this page, https://developers.g...on/autocomplete which is what I think I want. I want to be able to search a specific word and return only results that I input. I am not sure how to link the JSON script to the XML. I need some help.
  3. I used loadXMLDoc to load an XML file onto my web page. I then saved different contents to a file of the save name. When I reloaded the file with loadXMLDoc, I got the original contents instead of the new contents. I deleted the file and then save the new contents to the file with the same name. Reloading still gave me the old contents. I then changed the name of the file. This time loading the file with loadXMLDoc gave me the new contents. Does loadXMLDoc remember the contents that was loaded from a file with a given name and not bother reloading the contents if I present it with a file of the same name albeit different contents? After modifying the file, I looked at the XML code and the contents were modified after the first modification.
  4. Hello all,I have tried so many things to get this to work but to no avail, can someon eplease help me out here with a simple script for n XML steam feed.http://api.steampowered.com/ISteamUserStats/GetGlobalAchievementPercentagesForApp/v0002/?gameid=221380&format=xml OK NOW THE ISSUE IS:I have a blank webpage which I have placed the above link into, I simply want the contents of the XML feed from the link to appear in mypage.......How do I make the contents of that url appear on the same page??SO I NEED THE SMALL SCRIPT OR HTML CODE TO DO THISAlso I would like to have the background a certain colour and use a certain font like 12point arial with bold headings and lower case text.Can someone please provide me with the html to allow this XML feed to appear on my webpage with a different colour background, arial 12pt font inbold and lowercase____________________________________________________________________________I RECEIVED A REPLY TO THIS POST AND THEY ADDED THIS:It's a little hard to tell from what you wrote. But, I think what you are looking for is an AJAX script to pull in the XML,then CSS can take care of the formatting.Look up how to process a XMLHttpRequest in javascript (or another scripting language). That will let you put the XML file into an array. Then,you can use (javascript) document.write() to put the pieces on your page.______________________________________________________________________________SO this being said do I need a javascript code in the page to show the XML Feed with formatting, what would this code be, this is the magicalquestion :)Could someone please please help me..........With regardsMathew
  5. Hello all, I have tried so many things to get this to work but to no avail, can someon eplease help me out here with a simple script for n XML steam feed. http://api.steampowered.com/ISteamUserStats/GetGlobalAchievementPercentagesForApp/v0002/?gameid=221380&format=xml OK NOW THE ISSUE IS: I have a blank webpage which I have placed the above link into, I simply want the contents of the XML feed from the link to appear in my page....... How do I make the contents of that url appear on the same page?? SO I NEED THE SMALL SCRIPT OR HTML CODE TO DO THIS Also I would like to have the background a certain colour and use a certain font like 12point arial with bold headings and lower case text. Can someone please provide me with the html to allow this XML feed to appear on my webpage with a different colour background, arial 12pt font in bold and lowercase Could someone pleasde please help me.......... With regards Mathew
  6. Hello,I'm currently having the following problem. I have xml data which needs formatting as pages and paragraphs, i.e.<Document><Page><Paragraph><Line>This is a paragraph</Line><Line>This is line 2</Line></Paragraph></Page></Document>This is all well and good, but does not allow for paragraphs which go over a page boundary.Any suggestions would be most welcome,
  7. There's a great exampling of transforming XSLT to XHTML on this W3Schools site, but the example does not work in IE 10. It works great in previous versions of IE, Firefox and Chrome though. Could anyone offer a a fix that would allow it to work in IE 10 as well? http://www.w3schools...ename=cdcatalog Thanks
  8. I want use a WSDL file who wrote.With two porttypes <wsdl:portType name="ContentDirectory"> <wsdl:operation name="GetSortCapabilities"> <wsdl:input message="tns:GetSortCapabilitiesRequest" /> <wsdl:output message="tns:GetSortCapabilitiesResponse" /> </wsdl:operation> <wsdl:operation name="GetSystemUpdateID"> <wsdl:input message="tns:NOTHING_INPUT" /> <wsdl:output message="tns:GetSystemUpdateIDResponse" /> </wsdl:operation> </wsdl:portType> <wsdl:portType name="ConnectionManager"> <wsdl:operation name="GetCurrentConnectionIDs"> <wsdl:input message= "tns:NOTHING_INPUT" /> <wsdl:output message="tns:GetCurrentConnectionIDsResponse" /> </wsdl:operation> <wsdl:operation name="GetProtocolInfo"> <wsdl:input message="tns:NOTHING_INPUT" /> <wsdl:output message="tns:GetProtocolInfoResponse" /> </wsdl:operation> </wsdl:portType> And two binding <wsdl:binding name="ContentDirectory" type="tns:ContentDirectory"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="Browse"> <soap:operation soapAction="http://www.forge.soa4d.org/DPWS/Samples/MediaRenderer/Browse/" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="GetSystemUpdateID"> <soap:operation soapAction="http://www.forge.soa4d.org/DPWS/Samples/MediaRenderer/GetSystemUpdateID/" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="ConnectionManager" type="tns:ConnectionManager"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="GetCurrentConnectionIDs"> <soap:operation soapAction="http://www.forge.soa4d.org/DPWS/Samples/MediaRenderer/GetCurrentConnectionIDs/" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="GetProtocolInfo"> <soap:operation soapAction="http://www.forge.soa4d.org/DPWS/Samples/MediaRenderer/GetProtocolInfo/" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> And service with two ports <wsdl:service name="Media"> <wsdl:port name="ContentDirectory" binding="tns:ContentDirectory"> <soap:address location="http://localhost:8080/MediaServer/TESTWSDL" /> </wsdl:port> <wsdl:port name="ConnectionManager" binding="tns:ConnectionManager"> <soap:address location="http://localhost:8080/MediaServer/TESTWSDL" /> </wsdl:port> </wsdl:service> When i use this device this only one port my client WSDLreader read my WSDL. Ben i use this, with both port i have an error. (same with a different location) I didn't find in W3 WSDL spec a problem with that. What is the solution? Regards Rem
  9. Hi I need to reference a swf file from another website that I am representing but I could not get the swf on their page to properly show up in mine. I am embeding in xml and my code is:<embed type="application/x-shockwave-flash" src="http://www.citizensoldiersupport.org/media/home-gallery.swf" width="574" height="359" id="homeFlashContent" name="homeFlashContent" quality="high" menu="false" scale="noscale" salign="lt" wmode="transparent"> </embed>Any idea or thoughts of whats wrong?Thanks in advance
  10. I have many xml file for which i am creating xsl to convert it into tabular format (HTML). Problem is in xml each node is different. And also one xml is different from other. That's why i am creating one xsl file which takes the node name dynamically and convert it into tabular format. I want node name in table itself. But this should not be hard-coded. Any suggestion is welcome.Below is xml file.......... <?xml version="1.0" encoding="UTF-8"?><t_square_data_model><adapter_identifier> <ce_adapter> <ce_adap_vers>3.65.0</ce_adap_vers> <ce_adap_iden></ce_adap_ident> </ce_adapter> <db_adapter> <db_adap_vers></db_adap_vers> <db_adap_ident></db_adap_ident> </db_adapter></adapter_identifier><calling_application> <appl_type>SAP R/3</appl_type> <client_ident>900</client_ident></calling_application><t_square_document> <document_line> <cost_location></cost_location> <net_amount> <net_amount_doc>1.00</net_amount_doc> </net_amount> <cust_purchase_no></cust_purchase_no> <doc_line_no>000001</doc_line_no> </insurance_amount> <taxation_line> <jurisdic_t_code></jurisdic_t_code> <jurisdic_code2></jurisdic_code2> <fi_book_indic>ES</fi_book_indic> </taxation_line> <taxation_line_item> <exemption> <effective_date></effective_date> </exemption> <tax_zone_level>2</tax_zone_level> <tax_registration> <customer_reg_no></customer_reg_no> <customer_tax_L1></customer_tax_L1> <customer_tax_L2></customer_tax_L2> </tax_registration> <customer> <customer_type></customer_type> <customer_tax_reg></customer_tax_reg> </customer> <discount_amount> <disc_amount_loc>0.00000</disc_amount_loc> <disc_amount_doc>0.00000</disc_amount_doc> </discount_amount> </document_line></t_square_document><tax_engine_details> <cs_patch>1.0</cs_patch> <cs_tax_api>5.5.0</cs_tax_api> <cs_version>5.5.0</cs_version></tax_engine_details><authentication> <appl_id>DVL</appl_id> <appl_pw>sapsd</appl_pw></authentication></t_square_data_model> what sholud be the xsl to get the node name dynamically??
  11. Hi, This is my first topic in this forum and i hope that someone can help me = = = = = = = = = XML: <?xml version="1.0" encoding="utf-8"?><gallery><description>martens-design.be</description><album title="" thumbnail=""><description></description><image src="xxxxx.jpg" thumbnail="xxxxx_thumb.jpg"></image><image src="yyyyy.jpg" thumbnail="yyyyy_thumb.jpg"></image><image src="zzzzz.jpg" thumbnail="zzzzz_thumb.jpg"></image></album></gallery> = = = = = = = = = ASP: <%Set objXMLDoc = Server.CreateObject("Microsoft.XMLDOM")objXMLDoc.async = FalseobjXMLDoc.load("http://www.absdef.com/data/MyXML.xml")Set Root = objXMLDoc.documentElementSet NodeList = Root.getElementsByTagName("gallery/album/image")For i = 0 to NodeList.length -1 Set image = objXMLDoc.getElementsByTagName("src")(i) Set thumb = objXMLDoc.getElementsByTagName("thumbnail")(i) Response.Write image.text & " " & "<br>" Response.Write thumb.text & " " & "<br>"NextSet objXMLDoc = Nothing%> = = = = = = = = = ...but i've got nothing ...and this is what i want: xxxxx.jpg xxxxx_thumb.jpg <br>yyyyy.jpg yyyyy_thumb.jpg <br>zzzzz.jpg zzzzz_thumb.jpg <br> = = = = = = = = = Thankzzz Charlotte
  12. I have a dynamic web page with an <a> where the href varies with the contents. I would like the <a> to open in a new tab instead of a new IE. So I use <a href="......." target="_blank"/> to achieve this but not always work: (1). using jsp to generate html, target="_blank" in the resulting html leads to new tab, as expected.(2). instead of jsp->html, using servlet to write xml to IE with xslt, target="_blank" in the xsl leads to new IE opened, not new tab.(3). In 2, if I view the source in IE and save the xml together with the xsl in same folder, open the xml directly with IE, target="_blank" leads to new tab, as expected. I don't know if there is any method to make (2) above also open new tab. Please help.
  13. Hello everybody, I have a little problem here...I have a XML file, that is a database itself containing information about terminology in two languages... This exemple file is to be "uploaded" into a MySQL databse, on Ubuntu, which is already built and ready to get the information from the XML files... The thing is: how can I start doing this uploading process? Is shell script a good way? Or is it better to use another tool? How? The file is here, attached. Thank you XML_exemple.mtf.xml
  14. We have a client that wants to specify both these attributes in an XML header. Is this allowed under XML specs ? An example is given below. <InvoiceImport xmlns="http://www.xxxx.com/schema/auditor/mws/invoice/" xmlns:xsi="http://www.w3.org/20...Schema-instance" xsi:noNamespaceSchemaLocation="http://www.xxxx.com/schema/auditor/mws/invoice/invoice-1.1.xsd" xsi:schemaLocation="http://www.xxxx.com/schema/auditor/mws/invoice/ http://www.xxxx.com/schema/auditor/mws/invoice/invoice-1.1.xsd">
  15. Hi everyone! I need help for transforming XML in to XHTML using XSLT. I can do everything i need in XSLT and it works on every Browser except in Google Chrome. I read that this is not a strange thing... Google do this intentionally for keep hight security level... Is this true?Are there something that I can do for resolve this problem?
  16. HiI'm kinda new to XML and coding so I dont know if this is possible...I have this XML made with Processing what it does is: It takes the feed from the webcam and when I press Space it samples color from 2 pixels in different possitions. It writes the XML like this: <?xml version="1.0" encoding="ISO-8859-1"?><COLORS><SHIRT>#959789</SHIRT><PANTS>#19100F</PANTS><SHIRT>#999486</SHIRT><PANTS>#19110D</PANTS><SHIRT>#939791</SHIRT><PANTS>#1D120F</PANTS></COLORS> So everytime I press Space it adds the Tags <SHIRT> and <PANTS>, this means that the XML is always updating What i need now is a HTML that reads the XML and puts colors in cells of a table and everytime there is a new color, it adds it to the table... Is there a way to do that? Please I've been trying this for the last 3 days with no success... Thank you
  17. I'm probably too damaged of working with C# and LinQ, so havn't done a real SQL sentance since my work in Java.I have two tables, which are combined with a PK and FK. Table_MyCust with PK CustID and Table_CustApartments which contain CustID as FK.I want to make a XML document with PHP, where there is a node for each MyCust row, and for each MyCust there is a CustApartments for each apartment that have the current CustID as FK. In C# I've do something like the following: XElement xml = new XElement("customers", from p in DatabaseConnection.Custs orderby p.CustName select new XElement("customer", new XAttribute("customerName", p.CustName), new XElement("Addresses", (from l in p.Aparts.Distinct() orderby l.Street where l.Street != null && !l.Postal.Equals("1010") select new XElement("Address", (string)l.Street); ))); But how does I do in PHP? Does you create a SQL sentance with some kind of a join operation? Or do you create two SQL statments, and check for equals on the PK and FK while running through all the rows? I'm not sure whats the 'correct' way to do in PHP, since I'm fairly new to PHP scripting yet.
  18. Hi All I have a bizzar issue which is driving me nuts. I was running a php server on my pc to test my code with no issues - now moved it to the host server and get this issue when try to parse xml: Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 1: parser error : Start tag expected, '<' not found in /websites/123reg/LinuxPackage22/tr/ad/in/tradingbay.co/public_html/Lib/Functions.php on line 154 here is my code: $TDurl = "http://api.tradedoubler.com".$Version.$module.$Format.$TDParams.$Token;print $TDurl;$TDResponse = @file_get_contents($TDurl);$TDParsed_Xml = simplexml_load_string($TDResponse);
  19. I have a question about the XML. I will admit, I havent spent a ton of time trying to find the answer to this now because I've looked into it in the past with no luck, which is why I never really started using XML to begin with. But I feel like it would be the best option for a site I want to create, and I just need a few clarifications on how to use it.I think I understand the basic structure of an XML document, and all the tags you can create. But my question is once you create the structure, or Schema, What do you do with that to easily insert data. Say I have a simple structure like this<article><title> ABC</title><keywords> </keywords> (Question: would I have several of these tags with multiple keywords?)<summary> </summary><text> </text></article>That may or may not be right, but close enough. If I have many articles I want to post, I really don't want to have to go through and retype all the tags everytime I add something, especially if my actual data has a lot more tags. But I have yet to figure out what I use to insert the data into that format. I'm assuming I can build a form, but I'm not sure how that gets transfered. Can it be done with HTML only or do I need another language?Also, when retrieving the information from the xml file, is that straight html or something else as well? If I missed the page that explains this on the site, you can just point me in the right direction. Also, If I wanted to just pull everything except for the text itself to include on one page, and then specific articles when a linked is clicked on other pages, that can be done right? Would I have a separate page for each dataset? or is it dynamic. Meaning If i click article one, it will show article one without needing a separate file for each additional article?I am somewhat familar with sql and PHP, so that is the method I'm thinking of. I just don't think I need a full fledge database for what I'm doing. I just need to know how data gets inserted once the structure is in place. Thanks
  20. Ok, I have an interesting problem. I'm using AJAX to pull information from in an XML file. Every thing works, however, quotes are giving me issues. I have the: <SOURCE>llSay("hello world",0)</SOURCE> as one of my elements in the XML. When I pass this in my javascript to the HTML, the source ends up looking like this: <input value="x" onchange="checkState('d4', this, 'llSay(" hello world",0)' ,'its triggered by the state')"> and I need it to look like this: <input value="x" onchange="checkState('d4', this, 'llSay("hello world&quot,0)' ,'its triggered by the state')> so I tried this: <SOURCE>llSay("hello world",0)</SOURCE> and I end up with: <input value="x" onchange="checkState('d4', this, 'llSay("hello world",0)' ,'its triggered by the state')"> What can I do to the XML file to make it pass " as it. I tried \" but I end up with \" as the results.
  21. Hi guys, I have been asked to set up an affiliate site but the content is supplied as an XML feed which is protect by a username & password. Please can someone help me with the code that will allow me to access this secure feed without having to login every time? I have PHP experience but obviously at a basic level! Many ThanksNathan
  22. In the xml schema data type --> date allows date as yyyy-mm-dd format by default.How can we modify it so that it accepts yyyy/mm/dd format style instead ?
  23. HiI need to parse a SOAP response xml and display come of the nodes values in an HTML page.I have tried to do this, but it doesn't work:<!DOCTYPE html><html><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","testing.xml",false);-->xmlhttp.open("POST","http://{server}/soap/services/ICDMS_PortalFormsIntegration/Processes/LC_GetDeployedFormsList?wsdl&lc_version=9.0.0&version=1.0",true);xmlhttp.send();xmlDoc=xmlhttp.responseXML;document.write("<table border='1'>");var x=xmlDoc.getElementsByTagName("FormType");for (i=0;i<x.length;i++) { document.write("<tr><td>"); document.write(x.getElementsByTagName("id")[0].childNodes[0].nodeValue); document.write("</td><td>"); document.write(x.getElementsByTagName("name")[0].childNodes[0].nodeValue); document.write("</td></tr>"); }document.write("</table>");</script></body></html> Can anyone help? Is there a different way I need to make the SOAP endpoint call?Thanks in advance
  24. Hello everyone, I've an application which uses xml form for data entry. I was wondering if is possible to make calculation (mainly additions and subtraction)? <?xml version="1.0"?><items><item type="settings" position="label-top"/> <item type="label" label="Edit report details here." /> <item type="label" label="Date"/><item type="calendar" dateformat="%d/%m/%Y" validate="notEmpty" required="true" name="date" bind="date" label="Date" offsetLeft="15"/><item type="input" name="admin" bind="admin" label="Admin" offsetLeft="15"/> <item type="label" label="Sales"/> <item type="input" name="others" bind="others" label="Others" offsetLeft="15"/><item type="input" name="internet" bind="internet" label="Internet" offsetLeft="15"/><item type="input" name="topup" bind="topup" label="Top Up" offsetLeft="15"/><item type="input" name="phcard" bind="phcard" label="Phone Cards" offsetLeft="15"/><item type="input" name="phcalls" bind="phcalls" label="Phone Calls" offsetLeft="15"/> <item type="input" name="bustickets" bind="bustickets" label="Bus Tickets" offsetLeft="15"/> <item type="input" readonly="true" name="totalin" bind="totalin" label="Total In" offsetLeft="15"/> <item type="label" label="Expenses & Goods"/> <item type="input" name="expenses" bind="expenses" label="Expenses" offsetLeft="15"/><item type="input" name="goods" bind="goods" label="Goods" offsetLeft="15"/><item type="input" name="goodsdetails" bind="goodsdetails" label="Goods Details" offsetLeft="15"/><item type="input" readonly="true" name="balance" bind="balance" label="Balance" offsetLeft="15"/><item type="input" name="till" bind="till" label="Till" offsetLeft="15"/><item type="input" name="cash" bind="cash" label="Cash" offsetLeft="15"/><item type="input" name="debits" bind="debits" label="Debits" offsetLeft="15"/> <item type="input" readonly="tru" name="extra_short" bind="extra_short" label="Extra/Short" offsetLeft="15"/> <item type="button" xcommand="save" value="Submit" offsetTop="15"/> <item type="label" label="" offsetTop="15"/></items> What do you guys think?
  25. Hi all, This is my first question in W3Schools forum, and my question is I want to know whether it is applicable or possible to pass multiple parameter for a single attribute in xml tag?For example: <book name="Need" name="Help" price="10$"/><book name="Soon" name="Plz" price="20$/>...... Is it applicable? I know it may sound silly but if it is not possible then I'll go for any other option that may exist.So plz help me ASAP. Thanks in advance.
×
×
  • Create New...