xml

How to specify a file path for ftp in xml

Hi! How to specify a file path of a server to access it's directory in xml file. This I can specify in Local Server. <file value="C:\\Log\LogFile.txt"/> How to specify the same in another server which I'm accessing it through ftp.. ...

Use of XML for Model class and structuring

Hi there, I am currently working on a little application: The structure follows in some way the MVC pattern. For short it has the basic things, Models, Controllers etc. Now I am sitting here and do not know whether : 1. The SQL database is only managed by a model through methods the programmer gives him like: "Hey we have name reco...

xml at webserver

can any one tell how one can send the xml files to be executed at the web server using Java? can we send it using xmlhttprequest object available in javascript? Is there any alternate for this? ...

XSLT Parameter Value Insertation problem

hello, i want to make that type of xsl file which remove the namespace value as well as adding parameter value in xml file. here is my latest xsl file, which removed the namespace but didn't add param value into "t0019/ifta_account" template. so when data transfer from xml to database at that time file name not set into (xml_ifta_accou...

Flash XML error

Hi, I'm using the following code to get something through XML var myLoader:URLLoader; var myXML:XML; var myXMLURL:URLRequest = new URLRequest("http://testapp.varheroes.com/yofacebook/canvas/calcammo/"); myXMLURL.method = URLRequestMethod.POST; myLoader= new URLLoader(myXMLURL); myLoader.dataFormat=URLLoaderDataFormat.TEXT; myLoader.add...

include image in XML file

I want to be able to send an image from HTML page to a XML file using C#. The image should be sent along with some text, the problem is how do I store the image in the XML file efficiently, so it can be sent over the wire and how do I store the position of the image on the HTML page, so it can be restored later in the original positio...

Howto update a xml document's child regardless of it's "vertical index"/depth in actionscript 3?

I'm in a situation where I have a xml document which is going to be updated in the following way: The deepest child within the document which surrounds a certain x,y position (depending on it's x, y, width and height attributes) is going to get a new child element. If multiple childs exist with the same depth, the bottom one is updated. ...

XSD Inheritance

Hi, I'm looking for a kind of XSD Inheritance that I'm not quite sure it is possible , So I want to make sure of it :) The thing is I have a complex type A and another complex type B that only differs from A that its attribute has a fixed value. example: <xs:complexType name="A"> <xs:attribute name="AAtrr" type="xs:string"/> </x...

XSL Template, some data not being pulled

Hi, I am trying to display xml data in html via XSLT. I am building a simple html table that displays a Name, Address, & Phone Number. The XSL template pulls the Name & Phone Number, but for some reason, it won't grab the Address. Please help, thanks in advance. XML Doc <?xml-stylesheet type="text/xsl" href="testreport.xsl"?> <BpsR...

Error when return XML via Python Simple Web Server

I wrote a small web server using wsgiref.simple_server in python. It get and parse request via URL (environ.get('PATH_INFO')). Data return in xml format. I've test it, everything ok before return to client, xml string no problem (using print xml to view before return). With Firefox, IE, sometimes xml string show in FF, IE has error: XML...

Accessing XMLNS attribute with Python Elementree?

How can one access NS attributes through using ElementTree? With the following: <data xmlns="http://www.foo.net/a" xmlns:a="http://www.foo.net/a" book="1" category="ABS" date="2009-12-22"> When I try to root.get('xmlns') I get back None, Category and Date are fine, Any help appreciated.. ...

Quick xsl help: ordering a table by price

Hi, in xsl what code do you type to make the data in ascending or descending order? I'm making an xml document for music that shows the title, genre and price. I wanted to show the data in ascending order by price. How can I do it? I don't have a clue Just so yo know the data is in a table ...

Is there a way to make DataContractSerializer output cleaner XML?

Using the DataContractSerializer to serialize my object I get an output similar to <?xml version="1.0" encoding="utf-8" ?> <AgentNotification xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/The.name.space.Notifications"&gt; <_x003C_Created_x003E_k__BackingField i:nil="true" xmlns="...

Read XML from Sproc and Write to File

I need to read a large xml result (using For XML) from a stored proc and write it to a file in a .Net app. My first shot is to read the xml from the proc using XmlReader. I then need to write it to a file. Is this best way to handle this scenario, or is there a "better" method? ...

Can ConfigurationManager retain XML comments on Save()?

I've written a small utility that allows me to change a simple AppSetting for another application's App.config file, and then save the changes: //save a backup copy first. var cfg = ConfigurationManager.OpenExeConfiguration(pathToExeFile); cfg.SaveAs(cfg.FilePath + "." + DateTime.Now.ToFileTime() + ".bak"); //reopen the original c...

Sending xml using php

Hello, I have a xml file on my server. I have the following two questions. How to send this xml file using php to the clients browser ? The client would be making an ajax get request to the php script that sends the xml as a response. On the server side i use php simplexml functions to parse xml data. But, on the client end what would...

unexpected token in rss feed

I am trying to process an rss url, but is giving me an error as "'--' is an unexpected token. The expected token is '>'. Line 81, position 5." when i look at the source it has a value "Knowledge@Wharton -- Innovation and Entrepreneurship" in the middle of the xml node. How can i process this url and ignore that error. Public Shared Fu...

SAX parsing problem in Android... empty elements?

I am using SAX to parse an XML file I'm pulling from the web. I've extended DefaultHandler with code similar to: public class ArrivalHandler extends DefaultHandler { @Override public void startElement(String namespaceUri, String localName, String qualifiedName, Attributes attributes) throws SAXException { if (qualifi...

Merge XML files with same structure and different data

Hi, I'm trying to merge two file that have the same structure, and some data in common. So if a node has the same name in both files, a new node should be created with the children of both original nodes. The original files are the following: file1.xml <?xml version='1.0' encoding='UTF-8'?> <BROADRIDGE> <SECURITY CUSIP='CUSIP1' DES...

Python: which XML parsing library will work out-of-the-box for Python 2.4 and up?

How can I make sure that my Python script, which will be doing some XML parsing, will Just Work with Python 2.4, 2.5 and 2.6? Specifically, which (if any) XML parsing library is present in, and compatible between, all those versions? Edit: the working-out-of-the-box requirement is in place because the XML parsing I'm going to need to d...