4,764 Topics
Hi, I have this xml file, in my XSLT file I want to process <Parcel .../> element first then the <DeliveryAdress ../> and then the <Consignment .../> element. I would be very grateful if someone could suggest a solution please. Thanks in advance. <xml version="1.0" ?> <MR23030B> <Header RECORD_TYPE="HD" METER_NO="10800" …
How can create xml file using data fetched from database... plz help me..
Dear all; I have the following code below and I have been spending time trying to debug it but I can't understand why I am getting the illegal character error message. See my code below. Thank you. workheader.master.cs [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using …
Hi, I have a large complex XML and I need to change certain elements values in it. So output of the XML has to remain exactly same except those value be changed. Name of the file, preferably remain same. Element Name & Values that will be changed will come from …
Hi All, We would like to remove some redundant lines in XMLfile1. The second block is repeated, except the ctrycd, second block, it is 826. Can we combine that aslso in first block, something like xmlfile2. We have many redundant lines like this. Any help is appreciated.
I have this XML: <p> <span>Foo</span> <br/> </p> <p> <span>Foo</span> <br/> <span>Foo</span> <span>Foo</span> <br/> </p> <p> <span>Foo</span> <span>Foo</span> <br/> <span>Foo</span> <span>Foo</span> <span>Foo</span> <br/> </p> I would like to be able to select the <br/> tag first and then loop through the spans above them. The reason for this is to …
Hi, I have an XML file that I am trying to parse and then sort into an re-ordered list. Currently the XML file is ordered via date ascending i.e. oldest item first, newest last. I know how to parse an XML file using 'XMLNodeList - GetElementsByTagName' but what would be …
Greetings to all. My problem is not particularly VB.Net specific but having looked around this forum, I didn't know exactly where to post it and considering that I'm writing my program in VB.Net, I just decided to do so here. I apologize in advance, if that was wrong of me. …
While accessing my web service i am getting XMLHttpRequest status=0 in Crome/Mozilla and in IE getting XMLHttpRequest status=406. What is the solution for it so that i will successfully get responseText from server? I have tried accessing my html code with localhost but its getting same error,while when i run …
I need to create WSDL file for my [B]Web Service[/B]. Web service receives xml-based request and responses to it. [B]Sample xml-based request:[/B] [CODE]<?xml version="1.0" encoding="utf-8"?> <PEP_IBANCheckRequest> <OrderNumber>34552</OrderNumber> <IIN>81070581488</IIN> <RNN>5851515115</RNN> <IBAN>KZ86926002P468708027</IBAN> <PaymentAccountType>1</PaymentAccountType> <OrderDate>2011-08-26T11:36:59.4050385+06:00</OrderDate> </PEP_IBANCheckRequest>[/CODE] [B]Sample xml-based response:[/B] [CODE]<?xml version="1.0" encoding="utf-8"?> <PEP_IBANCheckResponse> <OrderNumber>34552</OrderNumber> <OrgOrderNumber>65412</OrgOrderNumber> <OrderRunDate>2011-08-26T12:00:51.0369231+06:00</OrderRunDate> <Status>0</Status> <OrgBIC>65156151</OrgBIC> <OrgRNN>5445848</OrgRNN> </PEP_IBANCheckResponse>[/CODE] By looking at …
[CODE]package demo.weatherforecast.main; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import org.xmlpull.v1.XmlSerializer; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.os.Bundle; import android.util.Log; import android.util.Xml; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.ListView; import android.widget.SimpleAdapter; import android.widget.Toast; public class EditCity extends Activity { String xmlFilepath …
i have few xml files in my project.i used "advanced installer" software to create exe setup files.i have included the xml files in PROJECT->BIN->RELEASE ->RESOURCES folder. after installing the project setup,when i run the project, i am able to view the xml file details ,but i cannot add new content …
This is the code generating xml to feed into Javascript How to convert javascript output of the image to swf format using JAVA.. [CODE] package com.info.chart; //Contributor: i18n : Pedro Casals Fradera (2006/06/22) import java.awt.Color; import java.awt.Font; import java.awt.Paint; import java.io.FileNotFoundException; import java.io.IOException; import java.io.OutputStream; import java.text.NumberFormat; import java.text.SimpleDateFormat; import …
Hey guys! I started learning Python 3 four days ago and I wrote a little command line RSS Reader (~120 lines) using the [URL="http://feedparser.org/"]feedparser module[/URL]. The rss reader currently has a menu, and also receives command line arguments (run the script with "-h" or "--help" for more info). It has …
I am trying to attach an XML Schema to a document as mentioned here: [url]http://www.tech-recipes.com/rx/2099/word_2007_attach_xml_schema/[/url] However I am having trouble attaching the schema(s) in question. I am wondering if anyone can shed light into possible reasons this is happening. The XML Schemas I am trying to attach are these: [url]http://www.ddialliance.org/Specification/DDI-Lifecycle/3.1/XMLSchema/[/url] …
hello.. just want to ask if it's possible to save html form field values in an xml file without using any server side script like ajax or php. i just want to use javascript and i want to do it offline witthout using any server like tomcat. is it possible? …
I am trying to work on some code for updating google docs using the python gdata api's. The code works perfectly fine when i try to run the code in a cafe internet or home network without my proxy. When i have to deploy the code in my workplace - …
Hi, I am providing a snippet of a large code, this snippet intends to dynamically insert a list of filenames into a <select> element on pageload, the filenames being read via Ajax from a XML file kept in the same folder as this one: [CODE] <html> <head> <title>hi</title> <script src="https://www.google.com/jsapi" …
Hello Highlly Tinker Guys, I want XPath of Each Node in XMlFile in Vb.net Below Is my Code on button click event [CODE] Dim szXMLDoc As XmlDocument=New XmlDocument() szXMLDoc.Load(Server.MapPath("ChurchFolders.xml")) '------Code to find xpath for each node----------- [/CODE] The ChurchFolers.xml file is As below [code=xml] <xml version="1.0"> <folder id="parent" path="~/MyChurch"> <folder …
I am using VS 2010 and am debugging my XSLT on one of my XML files. This works fine. It splits so I can see 2 files at once - but that will only show me 2 files at once. 1) XSLT file as I walk through it 2) Either …
I need to find a way to carry a value I get from a template to another template. Both templates are on the same level. I thought I could use variable or param to do this but I cannot make it work. I tried finding a way using Google but …
Hey everyone, I've never used eclipse or java, and I have an assignment that is expected to use the XML encoding/decoding functionality. I've searched google a bit, but can't really find a good example. Does anyone have a link to some snippets or something that I could go by?
Hi, I have a list of posts which I want to share with my group of workers. I use an rss reader to read them personally. how can I share it with them. I tried google reader but it does not show all the posts in the shared option. Also …
I have a xml file.I can get it's data using 19 table but i want to get relationship and print data in one table
Hi i have generating xml file for chart(fusion chart). that chart having swf format file for each chart. i'm creating xml in case statement( case 1 for horizontal bar xml(file),case 2 for verical bar xml(file)) i have created that file by giving straight path it is not servlet it is …
So I have this code so far to parse some values from many XML files. What I can't figure out is how to declare the folder that i need it to open. I need the code to open up a folder on my c:\ that has lots of xml files …
Hi, I am a newbie to C# and OOP.. I need some advice regarding my requirement.. 1st Part: There are persons who use mobiles, of many subscribers and also have many numbers in each subscribers. If we consider the XML tags it would be [CODE]<Persons> <PersonName1>XXX</PersonName1><Subscriber1><SubscriberName>ABC</SubscriberName> <Numbers><one>123456</one><two>123456</two>....<twenty>20</twenty></Numbers></Subscriber1><Subscriber2><SubscriberName>ABC</SubscriberName> <Numbers><one>123456</one><tow>123456</two>....<twenty>20</twenty></Numbers><Subscriber2> </Persons>[/CODE] Like …
I describe my problem with following simple example. [CODE] function show(str) { if (window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); } else xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("txtHint").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","data.php?q="+str,true); xmlhttp.send(); } [/CODE] here,i am getting some responsetext or result from data.php file through my request. In my …
Hi, this works well on my localhost but when I upload it to my web server I get: Parse error: syntax error, unexpected T_STRING in /home/zupa/public_html/grafika.php on line 1 This whole xml thing is new to me and I really dont know why doesnt it work on my server (while …
Hi, I have error message . Please help me. 17 Attribute value "001" of type ID must be an NCName when namespaces are enabled. I am attaching file <!DOCTYPE cataloge [ <!ELEMENT cataloge (DVD)* > <!ELEMENT DVD (title?, genre?, rating?, viewerrating?, summary?, year?, director?, runtime?, studio?, actor? ) > <!ELEMENT …
Hai all, Please help me to compare two xml files using vb script or java script. example of xml file [CODE] <table name="uninstall_software" numRows="0" remarks="" schema="dbo"> <column autoUpdated="false" digits="0" id="0" name="swtitle_id" nullable="false" remarks="" size="10" type="int"> <parent column="id" foreignKey="c_uninstall_swtitle_id" implied="false" onDeleteCascade="false" table="software_title"/> </column> <column autoUpdated="false" digits="0" id="1" name="machine_id" nullable="false" remarks="" size="10" …
Hi All, Has anybody worked with extracting an image from RSS/Atom Feeds using Perl There is a modulke XML::RSS which extracts images from RSS feeds. But in Atom feeds the images are embedded in the description using the img tag. Need some help on extracting the image from the description …
Can anyone provide me with an example working xsl contact form, nothing fancy just an example form that I can test and learn from. Thanks GW
I am writing some learning code to convert an XML file to a JavaScript array. So far I can convert from XML to JSON with this: [code] <?php $xmlStr = simplexml_load_file("xml/galleryXML.xml"); $jsonStr = json_encode($xmlStr); ?> [/code] I don't know and can't find a way to convert to a JavaScript array …
Hi All, I have a xml something like this [CODE]<addres> <country>xxxx</country> <city>xxxx</city> <name>xxxxxxxx</name> <street>xxxxxxx</street> <!-- like this n number of element can come --> </addres>[/CODE] Out of those all tag any of tag e.g. <name> I don't want to produce in out put xml for exp. output should be like …
Hey guys, is there a way to get a node's name and assign it as a value to a variable using javascript? Here's an example structure of the xml. [CODE] <list> <student id="101"> <name>John Smith</name> <DOB>07-09-1987</DOB> <address>123 ABC street</address> </student> <student id="102"> <name>John Doe</name> <DOB>05-04-1986</DOB> <address>234 DEF street</address> <address2>345 GHI …
Hi so i'm working on a project in c#. I have hundreds of xml files and I need to extract 6 values from each of the xml files and somehow display them on an excel datasheet. Here is an example of the xml file: [code] <XAxisCalib> <Max>288.93</Max> <Min>-48.08</Min> <MaxS>200</MaxS> <DfTHt>0</DfTHt> …
I am having a bit of trouble fighting through a namespace issue. I have the follow input document [CODE]<?xml version="1.0" ?> <ns:CustomObject3WS_CustomObject3QueryPage_Output xmlns:ns="urn:crmondemand/ws/customobject3/10/2004"> <ns:LastPage>true</ns:LastPage> <ListOfCustomObject3 xmlns="urn:/crmondemand/xml/customObject3"> <CustomObject3> <AccountExternalSystemId /> <AccountId>ADOA-3CN5XR</AccountId> <AccountName /> <CreatedBy>Olga CLEMENDOT, 09/08/2009 13:59:17</CreatedBy> <CreatedDate>09/08/2009 13:59:17</CreatedDate> <CustomObject3Id>ADOA-3I66LA</CustomObject3Id> <ExternalSystemId>ADOA-3CN5XR</ExternalSystemId> <ModifiedBy>Véronique CHINA, 06/22/2010 14:34:53</ModifiedBy> <Name>ADOA-3CN5XR</Name> <Type /> <ModifiedDate>06/22/2010 14:34:53</ModifiedDate> <stZ_DS1_ACCOUNT_CUSTMO>SIM35200031</stZ_DS1_ACCOUNT_CUSTMO> …
Hi Everyone, I'm beginner and currently I'm working on simple application on VB Express 2010 and I want it to save some data in XML file. The XML file is going to look like this: [CODE] <XML> <Info> <X1>some data</X1> <X2>some data</X2> <X3>some data</X3> </Info> <Info> <X1>some data</X1> <X2>some data</X2> …
HEllo, I try to follow this tutorial : [url]http://edutechwiki.unige.ch/en/XSLT_Tutorial_-_Basics[/url] Im using xmlcopyeditor as IDE. So I typed the first example. Do a xml transform and I see these message : Cannot transform: Error at line 7, column 12: Failed to parse QName 'xsl:' Anyone a idea how to solve this …
I am learning ASP.NET and have built a basic web site that I want to use as a template for future sites. I am wondering if I should build a code generator that will take as an input an xml file which describes the application and then generate the base …
Hi there! I am busy creating a desktop application with Windows.Forms to display Twitter XML data inside a textbox on a form. The XML structure looks like this: [CODE] <statusses> <status> <text>...</text> <user> <name>...</name> </user> </status> <status> <text>...</text> <user> <name>...</name> </user> </status> </statusses> [/CODE] The problem is that with my …
I have an XML file that is displayed on a DataGridView driven by a dataset. I am having trouble setting up a filter where a user can enter information in a textBox then have the DataGridView filter to find results. The XML File is displayed on the DataGridView using this …
Hi folks, I’m struggling with what I thought would be a relatively simple process. In my last thread ([URL="http://www.daniweb.com/software-development/csharp/threads/379458"]http://www.daniweb.com/software-development/csharp/threads/379458[/URL]), I got your help with the placement of parentheses in a Linq to XML query. I thought it was all going to be easy from there. Now I am trying to …
Hello, I am trying to pull the status and message passed back from the webservice, I have been looking for about a week and still at the same point as I started. This is the response I am getting back. [CODE] <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <AddResponse …
Hi all, and thanks in advance for your help. I am trying to write a Linq to XML query that will test attribute values in multiple elements and return the possibly multiple qualifying entries from a main element. The XML I'm looking at is basically like this: [CODE]<ContentList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" …
Hi All, I am writing a program that saves quotes for writers to an xml file. Well I save my data to the xml file, but when I go to load the document I get this exception thrown at runtime. System.Xml.Xsl.XslLoadException was unhandled LineNumber=2 LinePosition=1 Message="Stylesheet must start either with …
I'm writing an application in C#. I already have not empty .xml file but I want to add new values in it, without deleting some old. I have tried these codes: First: [code=c]FileStream docNewUser = new FileStream(@"C:\\MyApp\\MySubDir\\Data\\" + pr + ".xml", FileMode.Open); XmlTextWriter xmlNewUser = new XmlTextWriter(docNewUser, null); xmlNewUser.WriteStartDocument(); xmlNewUser.WriteStartElement("RootEl");//root …
Hey guys! i was wondering how some games and software have image files that are accessed from .dat and/or .bin files! can i do this for a C++ program? i tried googling but had no hope so i posted here.. i would also like to know how i can make …
The End.